2 messages in ru.sysoev.nginxredirecting to https
FromSent OnAttachments
Ian M. EvansMar 22, 2008 5:48 pm 
Igor SysoevMar 23, 2008 1:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:redirecting to httpsActions...
From:Ian M. Evans (iane@public.gmane.org)
Date:Mar 22, 2008 5:48:49 pm
List:ru.sysoev.nginx

Okay, maybe I have a cold coming on...but I've got a couple of URLs I need to redirect to https and the examples I've seen don't appear to be working:

location /asecuredir { rewrite ^(.*) https://www.example.com$1 redirect; }

I've tried /asecuredir and /asecuredir/

It appears to redirect to https if I enter http://www.example.com/asecuredir but doesn't redirect if I use http://www.example.com/asecuredir/somepage.shtml

Thanks.