Forum Moderators: phranque
Need Help to configure apache 2.0 to run an https connection.
I have 2 ip adresses configured into my server.
My certificate is configured with a comon name withour www.
So i want to load secures pages under [servername.com...]
To avoid certificate domain name mismatch
With the apache configuration above apache is unable to restart.
And the error log Spit the lines i pasted below.
Even with a single ip adress and SSLengine on with another certificate, apache is unable to handle connections begining with https....
I'm totally lost and i already past 2 days to try to solve that problem.
ANYHelp is Welcome.
Thanks a lot.
David.
<VirtualHost www.servername.com:*>
DocumentRoot /home/servername/httpd
<Directory "/home/servername/httpd">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost servername.com:443>
DocumentRoot /home/servername/httpds
ServerName servername
<Directory "/home/servername/httpds">
allow from all
Options +Indexes
</Directory>
SSLEngine on
SSLCertificateFile /certs/Verisign.pem
SSLCertificateKeyFile /certs/private.key
</VirtualHost>
[Wed Sep 15 12:38:39 2004] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Wed Sep 15 12:38:39 2004] [notice] LDAP: SSL support unavailable
[Wed Sep 15 12:38:40 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Sep 15 12:38:40 2004] [warn] RSA server certificate CommonName (CN) `servername.com' does NOT match server name!?
[Wed Sep 15 12:38:40 2004] [error] Unable to configure RSA server private key
[Wed Sep 15 12:38:40 2004] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch