webserver

How do I resolve the error “[warn] _default_ VirtualHost overlap on port 80, the first has precedence” on my Apache server?

If you are getting the warning “_default_ VirtualHost overlap on port 80, the first has precedence” you are missing the NameVirtualHost directive in your Apache configs.

Adding either of the following will alleviate the problem:

NameVirtualHost 127.0.0.1:80

or

NameVirtualHost *:80

Where 127.0.0.1 is the server’s IP address.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top