|
|
use multiple folders as localhost - Apache
|
Views : 228
|
|
Tagged in : Apache
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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.
|
|
By Ramya, On - 2011-08-02 |
|
|
|