Apache2 UCC Certificate Multiple Websites

Apache2 UCC Certificate Multiple Websites

am 11.01.2010 06:15:27 von 8p

Hi,

I've purchased a GoDaddy certificate to secure two websites. I've got
the virtual hosts configured correctly for port 80, but when I use
https, the browser gets redirected to the first website always. Is
there anything special that I need to do with the 443 virtual host to
handle two websites? Do I need to do a manual redirect to the document
root perhaps?


ServerName www.site1.com
ServerAlias site1.com
DocumentRoot /home/site1




ServerName www.site2.com
ServerAlias site2.com
DocumentRoot /home/site2


This part is working so far... both hosted properly in apache.


SSLCertificateKeyFile....
SSLCertificateBundle...
....


This is where I get stuck. No matter the domain I type, it always goes
to the first site, even though the certificate has site2 as an alt
name.

Any help is apprecated!

Regards,

Marcos

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: Apache2 UCC Certificate Multiple Websites

am 11.01.2010 06:31:15 von Nilesh Govindrajan

On 01/11/2010 10:45 AM, Marcos Mendez wrote:
> Hi,
>
> I've purchased a GoDaddy certificate to secure two websites. I've got
> the virtual hosts configured correctly for port 80, but when I use
> https, the browser gets redirected to the first website always. Is
> there anything special that I need to do with the 443 virtual host to
> handle two websites? Do I need to do a manual redirect to the document
> root perhaps?
>
>
> ServerName www.site1.com
> ServerAlias site1.com
> DocumentRoot /home/site1
>

>
>
>
> ServerName www.site2.com
> ServerAlias site2.com
> DocumentRoot /home/site2
>

>
> This part is working so far... both hosted properly in apache.
>
>
> SSLCertificateKeyFile....
> SSLCertificateBundle...
> ...
>

>
> This is where I get stuck. No matter the domain I type, it always goes
> to the first site, even though the certificate has site2 as an alt
> name.
>
> Any help is apprecated!
>
> Regards,
>
> Marcos
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 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
>
>
You should configure a NameVirtualHost on port 443. And use something
like this -


....


--

Nilesh Govindarajan
Site& Server Adminstrator
www.itech7.com


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: Apache2 UCC Certificate Multiple Websites

am 11.01.2010 11:54:32 von 8p

Thank you!

On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan wr=
ote:
> On 01/11/2010 10:45 AM, Marcos Mendez wrote:
>>
>> Hi,
>>
>> I've purchased a GoDaddy certificate to secure two websites. I've got
>> the virtual hosts configured correctly for port 80, but when I use
>> https, the browser gets redirected to the first website always. Is
>> there anything special that I need to do with the 443 virtual host to
>> handle two websites? Do I need to do a manual redirect to the document
>> root perhaps?
>>
>>
>> =A0 =A0ServerName www.site1.com
>> =A0 =A0ServerAlias site1.com
>> =A0 =A0DocumentRoot /home/site1
>>

>>
>>
>>
>> =A0 =A0ServerName www.site2.com
>> =A0 =A0ServerAlias site2.com
>> =A0 =A0DocumentRoot /home/site2
>>

>>
>> This part is working so far... both hosted properly in apache.
>>
>>
>> SSLCertificateKeyFile....
>> SSLCertificateBundle...
>> ...
>>

>>
>> This is where I get stuck. No matter the domain I type, it always goes
>> to the first site, even though the certificate has site2 as an alt
>> name.
>>
>> Any help is apprecated!
>>
>> Regards,
>>
>> Marcos
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Projec=
t.
>> See =A0for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
> You should configure a NameVirtualHost on port 443. And use something lik=
e
> this -
>
>
> =A0 =A0....
>

>
> --
>
> Nilesh Govindarajan
> Site& =A0Server Adminstrator
> www.itech7.com
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: Apache2 UCC Certificate Multiple Websites

am 11.01.2010 13:53:27 von Eric Covener

On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan wr=
ote:
> On 01/11/2010 10:45 AM, Marcos Mendez wrote:

> You should configure a NameVirtualHost on port 443. And use something lik=
e
> this -
>
>
> =A0 =A0....
>

>

That sounds completely unnecessary, what's it supposed to accomplish?

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: Apache2 UCC Certificate Multiple Websites

am 11.01.2010 14:21:13 von Nilesh Govindrajan

On 01/11/2010 06:23 PM, Eric Covener wrote:
> On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan wrote:
>> On 01/11/2010 10:45 AM, Marcos Mendez wrote:
>
>> You should configure a NameVirtualHost on port 443. And use something like
>> this -
>>
>>
>> ....
>>

>>
>
> That sounds completely unnecessary, what's it supposed to accomplish?
>

Well he wanted to configure SSL certificates for separate sites. So I
think that's the only thing possible ? Correct me if I'm wrong.

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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