_default_ VirtualHost overlap on port 443, the first has precedence

Solution 1:

Almost there!

Add this to ports.conf or http.conf and keep your above config.

<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.

    # !important below!
    NameVirtualHost *:443 
    Listen 443
</IfModule>

Solution 2:

It helped me executing " /usr/sbin/apachectl -S" also. This command exit shows TWO "ssl.conf" files on the same path. Move or delete the offender file and everything should work after.

Solution 3:

You can add this to your apache config at /etc/apache2/ports.conf:

<IfModule mod_ssl.c>                
    Listen 443                      
    <IfModule !mod_authz_core.c>    
        # Apache 2.2                
        NameVirtualHost *:443       
    </IfModule>                     
</IfModule>                         

(This works in both: apache 2.2 and 2.4)