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

Dave Cheney dave at cheney.net
Thu Oct 16 17:16:04 MSD 2008


Hi,

The only option I know of is to purchase an additional certificate for  
mysite.com (a wildcard certificate *.mysite.com will not work) and  
configure that on a separate IP address which will then handle the  
redirect.

Cheers

Dave

On 16/10/2008, at 11:54 PM, 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






More information about the nginx mailing list