httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Need help with multiple SSL certs + multiple domains
Date Mon, 05 Nov 2012 21:46:31 GMT
On 06/11/2012 6:03 AM, "Phusion" <phusion2k@gmail.com> wrote:
>
> I am in need of some assistance. The server is running Apache 2.2.15-15
on Red
> Hat Enterprise Linux Server 6.3 x86_64. The configuration currently has
the
> following which works. We have a wildcard SSL certificate for *.domain.com.
We
> have all these on one NIC with the same IP address. I need to host a
website
> for another domain with that domain having another wildcard SSL
certificate. I
> know that I could either make a virtual IP address through aliasing or
have
> another NIC with another IP address. Maybe, I need to change to use a
> combination of name-based virtual hosts and IP-based virtual hosts.
>
> Listen 80
> NameVirtualHost *:80
> NameVirtualHost *:443
> <VirtualHost *:80>
>         ServerName www.domain.com
>         Redirect / https://www.domain.com/
> </VirtualHost>
> <VirtualHost *:443>
>         ServerName www.domain.com
>         DocumentRoot /data/websites/domain/www
> </VirtualHost>
> <VirtualHost *:80>
>         ServerName beta.domain.com
>         Redirect / https://beta.domain.com/
> </VirtualHost>
> <VirtualHost *:443>
>         ServerName beta.domain.com
>         DocumentRoot /data/websites/domain/beta
> </VirtualHost>
> <VirtualHost *:80>
>         ServerName www.domain.net
>         Redirect / https://www.domain.com/
> </VirtualHost>
> <VirtualHost *:443>
>         ServerName www.domain.net
>         DocumentRoot /data/websites/domain/www
>         Redirect / https://www.domain.com/
> </VirtualHost>
> <VirtualHost *:80>
>         ServerName www.mydomain.com
>         Redirect / https://www.mydomain.com/
> </VirtualHost>
> <VirtualHost *:443>
>         ServerName www.mydomain.com
>         DocumentRoot /data/websites/domain/www
>         Redirect / https://www.domain.com/
> </VirtualHost>
>
> The new domain could be called domain2.com.
>
> <VirtualHost *:80>
>         ServerName www.domain2.com
>         Redirect / https://www.domain2.com/
> </VirtualHost>
> <VirtualHost *:443>
>         ServerName www.domain2.com
>         DocumentRoot /data/websites/domain2/www
> </VirtualHost>

You can do ssl name virtual hosts starting with SNI support in all modern
browsers and apache 2.2.12. All you need to do is point each virtual host
to its wildcard domain cert. If that was the question...

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Mime
View raw message