DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

_default_ VirtualHost Overlap On Port 80, The First Has Precedence

04.06.2009
| 7341 views |
  • submit to reddit
        // description of your code here

While restarting the apache server for an application serving requests from muliple domains,it keeps saying that


_default_ VirtualHost overlap on port 80, the first has precedence


The problem is that the NameVirutalHost is commented or may not be there. Make sure your NameVirtualHost line in httpd.conf is uncommented or written as:
NameVirtualHost *:80