Apache warning message on Ubuntu 10.04: ‘__default__ VirtualHost overlap on port 443, the first has precedence’
November 15, 2011 Comments
Got this message when I restarted the apache2 daemon after I added a new virtual host in/etc/apache2/sites-available/default-ssl on Ubuntu 10.04:
[warn] _default_ VirtualHost overlap on port 443, the first has precedence
I checked the other Apache config files and inside /etc/apache2/ports.conf there’s a comment on what to do:
Step 1. Add NameVirtualhost *:443 entry in ports.conf (inside <IfModule mod_ssl.c>)
NameVirtualHost *:80 Listen 80 <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. NameVirtualHost *:443 Listen 443 </IfModule>
Step 2. Change the VirtualHost statement in /etc/apache2/sites-available/default-ssl
Replace <VirtualHost __default__:443> with <VirtualHost *:443> (as mentioned in the comment inports.conf).
Step 3. Restart Apache and check if SSL is working fine for all of your virtual hosts
Don't like your current mobile carrier? Switch to Google Fi and receive a $20 credit with this link.