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

You are here:
< Back

I got this error after adding several SSL sites to my LAMP server:

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

To fix these errors and remove the SSL Certificate warning that was pointing to the wrong site, this statement is required:

NameVirtualHost *:443

in the Apache ports configuration file (ports.conf).  Special thanks to Happy Coding for finding and solving this error earlier on, but it was pointed out in that solution that the file was apache2.conf not ports.conf.  I believe in the older versions of Apache this would have been true.  Please see the following link for details.  http://happy-coding.com/warn-_default_-virtualhost-overlap-on-port-443-the-first-has-precedence/

Last Updated On October 24, 2017