Eric Covener wrote:
On Thu, Aug 14, 2008 at 9:59 AM, Gaurav Pruthi <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to