Marco Del Valle Marco Del Valle - 1 month ago 8x
Apache Configuration Question

Wamp document root is not updating

Just finished installing WampServer 3.0.4. I want to set it up so when I visit http://localhost/, it serves the files within

, instead of the default WampServer page.


I found many answers that say I have to open
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

with this:

DocumentRoot "e:/Archives/"
<Directory "e:/Archives/">
Options +Indexes +FollowSymLinks
AllowOverride all
# onlineoffline tag - don't remove
Require local

Notice the only two things updated were the Document Root and Directory paths.

My problem

Now, when I point my browser to
, it still shows the same default WampServer page in
. Clicking on the
link shows the following:


... 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
points to? I've tried restarting WampServer, restarting my computer (Running Windows 7), etc.


Possibly try starting a new VirtualHost on localhost.

<VirtualHost localhost:80>
DocumentRoot "E:/Archives"
ServerName localhost
<Directory "E:/Archives">
    Order allow,deny
    Allow from all
    Options Indexes FollowSymLinks
    AllowOverride all
    #   onlineoffline tag - don't remove
    Require all granted

Or, if that isn't the solution for you, and you are absolutely sure you changed any lines regarding C:/wamp/www, then you should try downgrading to WampServer 2. Usually that fixes most Apache problems.

However, this is most likely happening because you didn't change the DocumentRoot at line 230 to DocumentRoot "e:/Archives"

Also, anything above Apache 2.4.9 doesn't work well, so I should downgrade to 2.5. Just so you know.