httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] SSL Certificate Issue
Date Thu, 14 Aug 2008 21:04:03 GMT
Eric Covener wrote:
> On Thu, Aug 14, 2008 at 9:59 AM, Gaurav Pruthi <gkpruthi@gmail.com> wrote:
>> Dear All,
>>
>> Recently i bought a ssl certificate. Mistakenly i gave cn=www.domain.com in
>> the CSR provided. Now the issue is that when i open my website in browser
>> having URL: https://www.domain.com there is no issue but when i am opening
>> it without prepending www i.e. https://domain.com an error is thrown,
>>
>> Secure Connection Failed
>>
>> domain.com uses an invalid security certificate.
>>
>> The certificate is only valid for www.domain.com
>>
>> (Error code: ssl_error_bad_cert_domain)
>>
>>
>> Is there any way out that whenever anyone opens https://domain.com it
>> redirects to https://www.domain.com
>>
> 
> Not before the security popup, because the handshake happens earlier
> than the HTTP redirect can happen
> 
> 
> 
Question to Eric :
Would it not be possible to define 2 Virtual Hosts, one for "domain.com" 
and one for "www.domain.com", and have the one for "domain.com" not do 
any kind of SSL handshake but immediately send a redirect to the 
"www.domain.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


Mime
View raw message