Just finished installing WampServer 3.0.4. I want to set it up so when I visit http://localhost/, it serves the files within e:/Archives/
, instead of the default WampServer page.
Approach
I found many answers that say I have to open c:/wamp/bin/apache/apache2.4.18/conf/httpd.conf
and look for both the DocumentRoot and Directory lines (I found them around line 250). I substituted this:
DocumentRoot "c:/wamp/www"
<Directory "c:/wamp/www/">
#...
Options +Indexes +FollowSymLinks
#...
AllowOverride all
# onlineoffline tag - don't remove
Require local
</Directory>
with this:
DocumentRoot "e:/Archives/"
<Directory "e:/Archives/">
#...
Options +Indexes +FollowSymLinks
#...
AllowOverride all
# onlineoffline tag - don't remove
Require local
</Directory>
Notice the only two things updated were the Document Root and Directory paths.
My problem
Now, when I point my browser to http://localhost
, it still shows the same default WampServer page in C:\wamp\www\index.php
. Clicking on the phpinfo()
link shows the following:
DOCUMENT_ROOT C:/wamp/www
CONTEXT_DOCUMENT_ROOT C:/wamp/www
... which leads me to believe that my changes to httpd.conf aren't making any difference.
Has anybody ran into this issue? Is there a different way to change the default location that localhost
points to? I've tried restarting WampServer, restarting my computer (Running Windows 7), etc.