SSL location keep redirecting to non-SSL
Ian Evans
ianevans at digitalhit.com
Sat Sep 3 10:18:23 UTC 2011
On 03/09/2011 5:23 AM, Calin Don wrote:
> Also your rewrite rule rewrite ^(.+) http://www.example.com
> <http://www.example.com/>$1 permanent; sould be rewritten into rewrite ^
> http://www.example.com <http://www.example.com/>$request_uri? permanent;
Just wondering...instead of a blanket redirect and then location that
try to overide it, would it be better to have a rewrite that says "if
not subdir1|subdir2|myfacebookapp rewrite to http". Then locations for
those subdirs if they require passwords, etc.
How would I do the if not subdir1|subdir2|myfacebookapp rewrite to http
check?
More information about the nginx
mailing list