use multiple folders as localhost

by Ramya 2011-08-02 17:00:06

use multiple folders as localhost:

You can use multiple folders as localhost which are all not under the document root. It is made easier using "Alias" directive in Apache.

* Open "apache/conf/httpd.conf" file.
* Search for the line "<IfModule alias_module>"
* Add Alias directive as,
Alias /foldername /folderpath
eg,
Alias /test G:/test

* You need to provide a to allow access.
Add the line after the above alias,

Order allow,deny
Allow from all

* Restart Apache.
* Open web browser and type url as "http://localhost/test". You will be able to view the output from the folder test.

Tagged in:

1180
like
0
dislike
0
mail
flag

You must LOGIN to add comments