On Tue, Nov 6, 2012 at 10:09 AM, Ben Johnson <ben@xxxxxxxxxxxxxxxx> wrote:
> <mailto:phusion2k@xxxxxxxxx>> wrote:> *.domain.com <http://domain.com>. We
>>
>> 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
>> have all these on one NIC with the same IP address. I need to host a>> ServerName www.domain.com <http://www.domain.com>
> 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 <http://www.domain.com>
>> DocumentRoot /data/websites/domain/www>> ServerName beta.domain.com <http://beta.domain.com>
>> </VirtualHost>
>> <VirtualHost *:80>
>> ServerName beta.domain.com <http://beta.domain.com>
>> DocumentRoot /data/websites/domain/beta>> ServerName www.domain.net <http://www.domain.net>
>> </VirtualHost>
>> <VirtualHost *:80>
>> ServerName www.domain.net <http://www.domain.net>
>> DocumentRoot /data/websites/domain/www>> ServerName www.mydomain.com <http://www.mydomain.com>
>> Redirect / https://www.domain.com/
>> </VirtualHost>
>> <VirtualHost *:80>
>> ServerName www.mydomain.com <http://www.mydomain.com>
>> DocumentRoot /data/websites/domain/www>> The new domain could be called domain2.com <http://domain2.com>.
>> Redirect / https://www.domain.com/
>> </VirtualHost>
>>
>>
>> <VirtualHost *:80>
>> ServerName www.domain2.com <http://www.domain2.com>
>> ServerName www.domain2.com <http://www.domain2.com>
>> DocumentRoot /data/websites/domain2/wwwOne important caveat regarding Server Name Indication (SNI): any
>> </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...
user-agent (browser, device, etc.) that doesn't implement SNI (IE on
Windows XP, for example) will be directed to the first virtual host that
is defined in your Apache configuration. This could have unwanted or
unintended consequences, so beware... especially if you cannot easily
re-order the entries manually.
-Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx