I'm trying to setup virtual host on my Windows machine. In my httpd-vhosts.conf
file, I have this:
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/wamp/www"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/blg"
ServerName blg.com
</VirtualHost>
When I go to http://localhost
, I see all the folders under c:/wamp/www
, so that looks fine. However, when I go to http://blg.com
, I expect to see the files in c:/wamp/www/blg
, but I don't. Instead, I am seeing exactly what localhost sees: the files in c:/wamp/www
. What's wrong with my setup?