Using multiple virtual hosts with SSL on a single IP system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 

I have a Solaris 10 system running Apache 2.0.52.  I’d like to know how to have multiple virtual host names map to the same name while each supports its own SSL certificate and key file.  

 

The current setup is as follows:

 

NameVirtualHost *:443

# Host #1

<VirtualHost *:443>

       ServerName host1.domain.com

       SSLCertificateFile         /etc/apache2/ssl/host1.domain.com.crt

       SSLCertificateKeyFile      /etc/apache2/ssl/host1.domain.com.key

       …

</VirtualHost>

 

# Host #2

<VirtualHost *:443>

       ServerName host2.domain.com

       SSLCertificateFile         /etc/apache2/ssl/host2.domain.com.crt

       SSLCertificateKeyFile      /etc/apache2/ssl/host2.domain.com.key

       …

</VirtualHost>

 

The first certificate works for “host1”.  However, “host2” is still using the SSL certificate for “host1”.  It seems as if the subsequent SSLCertificateXXX directives are being ignored.

 

Can anyone tell me what I’m doing wrong?

 

 

Thanks in advance,

 

Bijan Vakili

Senior Software Developer

 

Cryptologic Inc.

55 St-Clair W, 3rd floor, Toronto, Ontario, M4V 2Y7
Phone 416.545-1455 Ext 5892
E-Mail:
bijan.vakili@xxxxxxxxxxxxxxx

SKYPE: bijanvakili

This message, including any attachments, is confidential and/or privileged and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy.

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux