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/

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 >= 2.3>
    Require all granted

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.


Search within Codexpedia

Custom Search

Search the entire web

Custom Search