How to add new web directory to Apache Server’s web root in localhost
Add the following at the end of Apache’s httpd.conf file, which is located in ApacheHomeDirectory/conf/
[code language=”text”]
Alias /test/ "C:\Users/Jay/Documents/Sites/test/"
Alias /test "C:\Users/Jay/Documents/Sites/test"
<Directory "C:\Users/Jay/Documents/Sites/test">
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
[/code]
Then restart Apache server, if you have an index page in C:\Users/Jay/Documents/Sites/test/, type the following in your favorite browser, it should show the index page.
http://localhost/test
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts