Linux : VirtualHost 0.0.0.0:443 overlaps perhaps you need a NameVirtualHost directive

By | September 15, 2013

Getting this message after adding a new VirtualHost using a dedicated IP address?

[warn] VirtualHost 0.0.0.0:443 overlaps with VirtualHost 0.0.0.0:443, the first has precedence, perhaps you need a NameVirtualHost directive

Well, you probably forgot a NameVirtualHost directive with the dedicated IP as followed, before the declaration of any VirtualHost in the config :

NOTE : All IPs used in any VirtualHost must be declared before the listing if all your virtual host with a “NameVirtualHost” directive.