You need to use a different port for the second SSL site. You can't do name
based virtual hosting in SSL.

Best Regards,
Brian


> 
> I have 4 virtual servers setup something like the following:
> Listen 80
> Listen 443
> 
> NameVirtualHost 1.2.3.4
> <VirtualHost 1.2.3.4:80>
>          ServerName www.dom1.com
> </VirtualHost>
> <VitrualHost 1.2.3.4:443>
>          ServerName www.dom1.com
>          SSLCertificateFile file1.pem
>          SSLCertificateKeyFile file1.key
> </VirtualHost>
> <VirtualHost 1.2.3.4:80>
>           ServerName www.dom2.com
> </VirtualHost>
> <VirtualHost 1.2.3.4:443>
>            ServerName www.dom2.com
>            SSLCertificateFile file2.pem
>            SSLCertificateKeyFile file2.key
> </VirtualHost>
> 
> When apache starts, it asks me for both passwords to both certs.  
> However, if I go to https://www.dom2.com, the certificate for 
> file1.pem 
> is presented to the browser.  IT IS SUPPOSED to present file2.pem.  
> What's wrong?????
> 
> James
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to