VirtualHost overlap on port 443, the first has precedence


One of the many Solutions to this Problem


This is the warning I was getting:

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

And, this is how to fix the warning:

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

NameVirtualHost *:443

I already had the line: “NameVirtualHost *:80″ which allowed me to have virtual hosts on the port 80, However later on I added a Virtual Host that operated on port 443 over SSL and I didn’t realize that I needed the line above.

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 it all boots up nice and clean, so I’m happy.

Hope this helps, I can’t say this will help in all instances of that warning, but it certainly fixed it up for me.


Filed in Nerd musings | Tags: , , ,

One Response to “VirtualHost overlap on port 443, the first has precedence”

  1. Computer Dude Says:

    Thanks, I was trying to figure this issue out for a while your post helped !

Leave a Reply