Why does Apache report “[warn] _default_ VirtualHost overlap on port 443, the first has precedence” when I start it?
If you’re going to be serving HTTP -and- HTTPS, be advised that most Apache2 distributions (including Debian) are missing a necessary “NameVirtualHost *:443” statement in /etc/apache2/ports.conf.
Add the line to ports.conf:
<IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to <VirtualHost *:443> # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 NameVirtualHost *:443 </IfModule>
Now tell Apache to reload it’s configuration:
$ sudo /etc/init.d/apache2 reload