How do I get my Apache virtual hosts working?
Posted
by elliot100
on Server Fault
See other posts from Server Fault
or by elliot100
Published on 2010-04-26T19:07:27Z
Indexed on
2010/04/27
0:14 UTC
Read the original article
Hit count: 734
I'm trying to set up virtual hosts for local development and can't seem to get it working.
I have this in my httpd.conf:
NameVirtualHost *
<VirtualHost *>
ServerName localhost
DocumentRoot C:/Users/Elliot/dev/UniServer/www
</VirtualHost>
<VirtualHost *>
ServerName drupal.dev
DocumentRoot C:/Users/Elliot/dev/UniServer/www/drupal.dev/httpdocs
</VirtualHost>
and this in C:\Windows\System32\drivers\etc\hosts:
127.0.0.1 localhost
127.0.0.1 drupal.dev
http://localhost resolves OK, http://drupal.dev/ does not.
Any ideas welcomed...
© Server Fault or respective owner