Rewrite https://mysite.com to https://www.mysite.com

Phillip B Oldham phill at theactivitypeople.co.uk
Thu Oct 16 17:12:08 MSD 2008


Thomas wrote:
> Hi list,
>
> I have purchased an SSL certificate for www.mysite.com, therefore I
> would like to rewrite any incoming request from https://mysite.com to
> https://www.mysite.com in order to avoid the web browser saying the
> certificate is not valid and that there my be fraud. How can I do
> that?
>
> It works well for http, but for https, the web browser keeps
> complaining the certificate is not valide for mysite.com
>   

I'm pretty sure there's no way around this. I believe that the browser, 
seeing that you're using the https:// protocol, checks for the 
certificate *first* before actually doing a request for the page (which 
would return your redirect header).

-- 

*Phillip B Oldham*
The Activity People
phill at theactivitypeople.co.uk <mailto:phill at theactivitypeople.co.uk>

------------------------------------------------------------------------

*Policies*

This e-mail and its attachments are intended for the above named 
recipient(s) only and may be confidential. If they have come to you in 
error, please reply to this e-mail and highlight the error. No action 
should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is 
not a 100% secure communications medium, and we have taken steps to 
ensure that this e-mail and attachments are free from any virus. We must 
advise that in keeping with good computing practice the recipient should 
ensure they are completely virus free, and that you understand and 
observe the lack of security when e-mailing us.

------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phill.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20081016/1b6e05ba/attachment.vcf>


More information about the nginx mailing list