Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Plesk 10.4 on my server and there is a config file which is loaded:


<IfModule mod_ssl.c>

<VirtualHost \ \
    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 \ \
    # The same settings just without the SSL settings

That looking like a general setting for SSL connections to my site.

Now I have my custom domain settings:


<IfModule mod_ssl.c>
    ServerName ""
    ServerAlias  ""
    ServerAdmin  ""

    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile "/opt/psa/var/certificates/domain.crt"
    SSLCertificateKeyFile "/opt/psa/var/certificates/domain.key"
    SSLCertificateChainFile "/opt/psa/var/certificates/"

    # Some more settings which has nothing to do with SSL


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?

share|improve this question

migrated from Jul 21 '12 at 22:29

This question came from our site for professional and enthusiast programmers.

You should import your certificate via hosting panel in websites&domains tab than your certificate will be added to apache configs.

Also, do not modify auto-generated apache configs you changes will be overwritten after next configs generation. You changes can be added to special file which name exists in comments.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.