Hello, I'm trying to assign two ssl certs on 1 IP (I have two different domains that i need to point to the same apache instance). I tried doing it via using different ports (sample code i got from another website):
Listen 1443
<VirtualHost _default_:1443>
ServerName zimbra.domaina.moc
ProxyPass /
http://zimbra.domain.moc:8080/
ProxyPassReverse /
http://zimbra.domain.moc:8080/
SSLEngine On
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateKeyFile /etc/httpd/conf/domaina_ssl/zimbra.zmb.moc.key
SSLCertificateFile /etc/httpd/conf/domaina_ssl/zimbra.zmb.moc.crt
</VirtualHost>
Listen 2443
<VirtualHost _default_:2443>
ServerName zimbra.domainb.moc
ProxyPass /
http://zimbra.domain.moc:8080/
ProxyPassReverse /
http://zimbra.domain.moc:8080/
SSLEngine On
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateKeyFile /etc/httpd/conf/domainb_ssl/zimbra.domainb.moc.key
SSLCertificateFile /etc/httpd/conf/domainb_ssl/zimbra.domainb.moc.crt
</VirtualHost>
I currently don't have any domains to test with but if I do it this way via multiple ports, when the client types in
https://www.domainA.com will it work? or will they have to type in
https://www.domainA.com:1443 to get it to work? (I don't want them to be typing in the port!)
Or do I need to point the domain (dns/A record) to domainA:1443?
I'm new to this, so any help will be appreciated! Any other solutions/suggestions on how to support multiple domains/ssl certs to one IP are welcome too! I did a solution involving SNI but I think there are some browser compatibility issues that I dont want to take the chance with. Thanks!