You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marcos Mendez <ma...@gmail.com> on 2010/01/11 06:15:27 UTC
[users@httpd] Apache2 UCC Certificate Multiple Websites
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?
<VirtualHost *:80>
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot /home/site1
</VirtualHost>
<VirtualHost *:80>
ServerName www.site2.com
ServerAlias site2.com
DocumentRoot /home/site2
</VirtualHost>
This part is working so far... both hosted properly in apache.
<VirtualHost _default_:443>
SSLCertificateKeyFile....
SSLCertificateBundle...
...
</VirtualHost>
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 <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
Re: [users@httpd] Apache2 UCC Certificate Multiple Websites
Posted by Marcos Mendez <ma...@gmail.com>.
Thank you!
On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan <li...@itech7.com> wrote:
> 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?
>>
>> <VirtualHost *:80>
>> ServerName www.site1.com
>> ServerAlias site1.com
>> DocumentRoot /home/site1
>> </VirtualHost>
>>
>>
>> <VirtualHost *:80>
>> ServerName www.site2.com
>> ServerAlias site2.com
>> DocumentRoot /home/site2
>> </VirtualHost>
>>
>> This part is working so far... both hosted properly in apache.
>>
>> <VirtualHost _default_:443>
>> SSLCertificateKeyFile....
>> SSLCertificateBundle...
>> ...
>> </VirtualHost>
>>
>> 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<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
>>
>>
>
> You should configure a NameVirtualHost on port 443. And use something like
> this -
>
> <VirtualHost *:443>
> ....
> </VirtualHost>
>
> --
>
> Nilesh Govindarajan
> Site& Server Adminstrator
> www.itech7.com
>
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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
Re: [users@httpd] Apache2 UCC Certificate Multiple Websites
Posted by Nilesh Govindarajan <li...@itech7.com>.
On 01/11/2010 06:23 PM, Eric Covener wrote:
> On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan<li...@itech7.com> wrote:
>> On 01/11/2010 10:45 AM, Marcos Mendez wrote:
>
>> You should configure a NameVirtualHost on port 443. And use something like
>> this -
>>
>> <VirtualHost *:443>
>> ....
>> </VirtualHost>
>>
>
> 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 <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
Re: [users@httpd] Apache2 UCC Certificate Multiple Websites
Posted by Eric Covener <co...@gmail.com>.
On Mon, Jan 11, 2010 at 12:31 AM, Nilesh Govindarajan <li...@itech7.com> wrote:
> On 01/11/2010 10:45 AM, Marcos Mendez wrote:
> You should configure a NameVirtualHost on port 443. And use something like
> this -
>
> <VirtualHost *:443>
> ....
> </VirtualHost>
>
That sounds completely unnecessary, what's it supposed to accomplish?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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
Re: [users@httpd] Apache2 UCC Certificate Multiple Websites
Posted by Nilesh Govindarajan <li...@itech7.com>.
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?
>
> <VirtualHost *:80>
> ServerName www.site1.com
> ServerAlias site1.com
> DocumentRoot /home/site1
> </VirtualHost>
>
>
> <VirtualHost *:80>
> ServerName www.site2.com
> ServerAlias site2.com
> DocumentRoot /home/site2
> </VirtualHost>
>
> This part is working so far... both hosted properly in apache.
>
> <VirtualHost _default_:443>
> SSLCertificateKeyFile....
> SSLCertificateBundle...
> ...
> </VirtualHost>
>
> 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<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
>
>
You should configure a NameVirtualHost on port 443. And use something
like this -
<VirtualHost *:443>
....
</VirtualHost>
--
Nilesh Govindarajan
Site& Server Adminstrator
www.itech7.com
---------------------------------------------------------------------
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