SSL location keep redirecting to non-SSL

Ian Evans ianevans at
Sat Sep 3 09:34:57 UTC 2011

On 03/09/2011 5:23 AM, Calin Don wrote:
> You should set a serverwide index directive. You should move index
> index.shtml index.php; from location / {} to server {}
> Also your rewrite rule rewrite ^(.+)
> <>$1 permanent; sould be rewritten into rewrite ^
> <>$request_uri? permanent;

Made your suggested changes.

After doing so tested location = /myfacebookapp which redirected to 
http, not what I want and location ~ /myfacebookapp which tossed a 
404...also not what I want.

5:34 am...argh. :-)

More information about the nginx mailing list