redirect https:// to https://www produce untrusted connection

Igor Sysoev igor at sysoev.ru
Mon May 10 15:12:03 MSD 2010


On Mon, May 10, 2010 at 02:01:16PM +0300, pablo platt wrote:

> I still can't redirect https:// to https://www but maybe I need the
> certificate to support https:// for this to work.

Yes, you need the certificate for example.com.

> Thanks
> 
> On Mon, May 10, 2010 at 10:37 AM, Igor Sysoev <igor at sysoev.ru> wrote:
> 
> > On Sun, May 09, 2010 at 11:35:23PM +0300, pablo platt wrote:
> >
> > > Hi,
> > >
> > > I'm running a website with nginx as a proxy and for static files.
> > > I'm using the ubuntu lucid nginx package - version 0.7.65
> > > http://example.com redirect to http://www.example.com - works
> > > https://www.example.com - SSL works
> > > https://example.com redirect to https://www.example.com - doesn't work
> > and
> > > show untrusted connection in the browser.
> > >
> > > I have two questions:
> > > - Why SSL only works when I use default on the listen: "listen     443
> > > default;"
> >
> > Please read this:
> >
> >
> > http://nginx.org/en/docs/http/configuring_https_servers.html#single_http_https_server
> > http://nginx.org/en/docs/http/configuring_https_servers.html
> >
> > > - Why I can't redirect https:// to https://www before I'm getting the
> > > untrusted connection warning.
> >
> >
> > http://nginx.org/en/docs/http/configuring_https_servers.html#certificate_with_several_names
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >

> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list