Technology Dribble

Another WordPress weblog about Technology

Setting Up Virtual Directory In Apache 2.2

In order to allow web access to a different directory outside the root directory, use the Alias directive. The Alias directive will map any directory into the web root.

For example if you want to create a virtual directory called test, and the directory is in the D:/example/test, then modify your httpd.conf and add the following entry at the bottom of the file:

Alias /test D:/example/test

On a typical Windows installation, the httpd.conf file is usually located in the following directory:

C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

The URL http://www.example.com/test/dir/file.html will be served from:

D:/example/test/dir/file.html

For more information visit the Apache HTTP Server Version 2.2 documentation.

posted by admin in Apache,Virtual Directory and have No Comments

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment