Forum Moderators: phranque

Message Too Old, No Replies

Multiple HTTPS setup problems

         

joe78uk

6:44 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



I'm trying to work out what's wrong with this configuration. Whichever sites config goes first, both sites get that certificate.

Please help, what have I done wrong?


<VirtualHost 12.34.56.78:443>
DocumentRoot /home/one_html
ServerName www.one.com
SSLEnable
SSLCertificateFile /etc/ssl/certs/www.one.com.crt
SSLCertificateKeyFile /etc/ssl/private/www.one.com.key
SSLCACertificateFile /etc/apache-ssl/ca_new_2018.txt
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
ErrorLog /home/logs/one_ssl_error_log
</VirtualHost>

<VirtualHost 12.34.56.78:443>
DocumentRoot /home/two_html
ServerName www.two.com
SSLEnable
SSLCertificateFile /etc/ssl/certs/www.two.com.crt
SSLCertificateKeyFile /etc/ssl/private/www.two.com.key
SSLCACertificateFile /etc/apache-ssl/ca_new_2018.txt
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
ErrorLog /home/logs/two_ssl_error_log
</VirtualHost>

jdMorgan

11:16 pm on Apr 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



joe78uk,

Welcome to WebmasterWorld!

This recent thread [webmasterworld.com] addresses the problem you're seeing. SSL is IP address and port-based, not hostname-based.

Jim

joe78uk

12:04 am on Apr 21, 2005 (gmt 0)

10+ Year Member



Hi Jim,

Thanks for your reply, not what I wanted to hear unfortunately!

So, if I get another IP address for my machine, then I can use the same apache-ssl server to deal with the other sites requests using 'listen' and changing the ip address for the other virtualhost listing to the new ipaddress, does this sound correct?

One problem after another these days!

Cheers,

Joe