I'm using Plesk 10.4 on my server and there is a config file which is loaded:
<IfModule mod_ssl.c> <VirtualHost \ IP.is.here:443 \ > ServerName "default-ip_is_here" UseCanonicalName Off DocumentRoot "/var/www/vhosts/default/htdocs" ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin" SSLEngine on SSLVerifyClient none SSLCertificateFile "/opt/psa/var/certificates/certHzJ8180" </VirtualHost> </IfModule> <VirtualHost \ IP.is.here:80 \ > # The same settings just without the SSL settings </VirtualHost>
That looking like a general setting for SSL connections to my site.
Now I have my custom domain settings:
<IfModule mod_ssl.c> <VirtualHost IP.is.here:443> ServerName "domain.com:443" ServerAlias "www.domain.com" ServerAdmin "email@example.com" SSLEngine on SSLVerifyClient none SSLCertificateFile "/opt/psa/var/certificates/domain.crt" SSLCertificateKeyFile "/opt/psa/var/certificates/domain.key" SSLCertificateChainFile "/opt/psa/var/certificates/domain.ca" # Some more settings which has nothing to do with SSL </VirtualHost> </IfModule>
Somehow it takes the outdated, self-signed Plesk certificate
certHzJ8180 instead of the real bought and foreign-signed certificate
domain.crt. I also restarted the server, that couldn't be the reason.
Is there a way to see all loaded configuration files for Apache? Maybe there are also other loaded files which overwrites the custom domain setting again? Or what's the reason why the wrong certificate is loaded?