httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Dubrouski" <serge...@gmail.com>
Subject Re: [users@httpd] Using multiple virtual hosts with SSL on a single IP system
Date Wed, 24 Jan 2007 17:03:14 GMT
The only way to make it work is by adding additional IP addresses and
setting VirtualHosts on those addresses, each with it's own
certificate. You can't have several certs on one IP address.

On 1/24/07, Bijan Vakili <Bijan.Vakili@cryptologic.com> wrote:
>
>
>
>
> 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@cryptologic.com
>
> 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.
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message