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

biot023 nginx-forum at nginx.us
Wed Nov 19 14:22:43 UTC 2014

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

More information about the nginx mailing list