Per all the documentation and countless examples in the archives of this mail list, you must either use two different IPs or use different ports. You *cannot* used Named Virtual Hosts for SSL. Period.

-dsp

On Wednesday, Jan 8, 2003, at 13:58 US/Eastern, toxshark wrote:

ihave the apache configured with 2 VirtualHosts on port 443.

bothVirtualServers have separately CertificateFiles and CertificateKeyFiles.

butnow if i connect to the VirtualHost2, the Host have the Certificate from the VirtualServer1!

bothHosts have now the same Certificate.



myhttpd.config:



...

NameVirtualHost92.35.28.17:443



<VirtualHost 92.35.28.17:443>

ServerNamedomain1.com

ServerAliaswww.domain1.com

DocumentRoot"/web1/"

SSLEngineon

SSLCertificateFile/usr/local/etc/apache/key/ssl1.cert

SSLCertificateKeyFile/usr/local/etc/apache/key/ssl1.key

</VirtualHost>



<VirtualHost 92.35.28.17:443>

ServerNamedomain2.com

ServerAliaswww.domain2.com

DocumentRoot"/web2/"

SSLEngineon

SSLCertificateFile/usr/local/etc/apache/key/ssl2.cert

SSLCertificateKeyFile/usr/local/etc/apache/key/ssl2.key

</VirtualHost>

...



______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]


Reply via email to