How do I get my Apache virtual hosts working?
- by elliot100
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...