Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

2014-11-19 Thread biot023
That seems to be just the ticket -- thankyou very much! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254914,254933#msg-254933 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Have full URL redirect to SSL (not just $server_name and $request_uri)

2014-11-19 Thread biot023
Ah, will do, cheers -- I had a look through the NGINX variables, but it wasn't really clear which variable did what. I suppose something like: location / { return 301 https://$uri; } Wouldn't work? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254914,254922#msg-254922

Have full URL redirect to SSL (not just $server_name and $request_uri)

2014-11-19 Thread biot023
Hi -- we currently have a redirect rule in a location on our server to redirect all non-SSL traffic to SSL, like so: location / { return 301 https://$server_name$request_uri; } This works for almost all cases, but there is an edge case that is broken by this. We have a custom subdomain function