Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had a virtual host setup that has been working fine all along, but out of the blue this morning I noticed that when I started up wampserver the icon remained orange and apache was not working.

My config files as follows:

..\Apache2.2.17\conf\httpd.conf:

(...other settings...)
Include conf/extra/httpd-default.conf
(...other settings...)

..\Apache2.2.17\conf\extra\httpd-vhosts.conf: added following entries a while back:

(...other settings...)
NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
   DocumentRoot C:\wamp\www\site1\
   ServerName site1.local
</VirtualHost>

<VirtualHost 127.0.0.1>
   DocumentRoot C:\wamp\www\site2\
   ServerName site2.local
</VirtualHost>

C:\Windows\System32\drivers\etc\hosts:

127.0.0.1 localhost
127.0.0.1 site1.local
127.0.0.1 site2.local

After some trial and error I found that if I disabled this line from httpd.conf the wampserver turns green again after restarting. So it seems that something has gone wrong with my virtual host setup.

#Include conf/extra/httpd-default.conf

There have been no recent changes to my system, though my PC did mysteriously reboot once this morning. Any ideas? Any help appreciated.

share|improve this question
up vote 0 down vote accepted

I ended up just reinstalling WAMP, and used forward slashes "/", though back slashes did work for me before.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .