How do I get my Apache virtual hosts working?
        Posted  
        
            by elliot100
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by elliot100
        
        
        
        Published on 2010-04-26T19:07:27Z
        Indexed on 
            2010/04/26
            19:13 UTC
        
        
        Read the original article
        Hit count: 335
        
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...
© Stack Overflow or respective owner