WHM Problem (?) - Only 1 SSL instance ever works correctly..

brianteeter

Well-Known Member
Jan 6, 2002
72
0
306
I have two SSL instances on a server. They both share the same IP, and have configs similar to those shown below.

The problem is that only the first one will work - ever. Go ahead and visit: https://www.covont.com

You will see that the server is sending the wrong certificate for the site - the certificate for the first SSL site listed in the httpd.conf. If I switch the ordering and put covont.com's SSL instance config before the other site, covont.com works fine, and the other site doesn't because the server serve's covont's SSL certificate instead of its.

Am I doing something wrong? I have a NameVirtualHost directive for the IP and port. Is something else required?

Thanks in advance for any assistance?



&VirtualHost 216.12.211.202:443&
ServerAlias www.covont.com covont.com
ServerAdmin [email protected]
DocumentRoot /home/covontc/public_html
BytesLog domlogs/covont.com-bytes_log
User covontc
Group covontc
ServerName covont.com

CustomLog /usr/local/apache/domlogs/covont.com-ssl_log &%t %{version}c %{cipher}c %{clientcert}c&

SSLVerifyClient none
SSLEnable

SSLCertificateFile /usr/share/ssl/certs/covont.com.crt
SSLCertificateKeyFile /usr/share/ssl/private/covont.com.key
SSLLogFile /var/log/covont.com
UserDir public_html

ScriptAlias /cgi-bin/ /home/covontc/public_html/cgi-bin/

&IfModule mod_jk.c&
JkMount /*.jsp ajp13
JkMount /* ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
&/IfModule&
&/VirtualHost&
 

obantec

Member
Apr 6, 2002
11
0
301
SSL issue

:p
Hi

You can only have 1 SSL site per IP.
You will have to use another IP for the second site.