VirtualHost overlap on port 80

This is the warning I was seeing when starting up apache

[warn] _default_ VirtualHost overlap on port 80, the first has precedence

You might be seeing something similar, however in most cases this is how to fix the warning:

Add this line of code to your configuration file (usually httpd.conf or httpd-vhosts.conf)

NameVirtualHost *:80

I kept getting the same warning whenever I (re)started Apache but it didn’t seem to hinder the operation of anything so I left it at that.

Now by adding this line of code everything works fine and Apache boots up nice and clean, just the way I like it.

This is almost exactly the same as the warning you get for virtualhost overlap on 443.

One thought on “VirtualHost overlap on port 80

  1. Pingback: VirtualHost overlap on port 443, the first has precedence

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">