Upate nginx documentation for non standard SSL port
I'm currently in an evaluation process for rhodecode. During my test setup it give me a headache that the given nginx example was not working fully in my set up (login and logout were getting a timeout although the user was logged in / out).
After a long search I figured out that the non standard SSL port was the issue. This can easily be fixed by replacng the following in the proxy.conf file (https://docs.rhodecode.com/RhodeCode-Enterprise/admin/nginx-tuning.html) :
proxy_set_header Host $host;
proxy_set_header Host $host:$server_port;
I hope this helps some other guys in the future ;)
#1 Updated by Marcin Kuzminski [staff] about 2 years ago
Thanks for the suggestion. We looked at this, and it seem using $http_host instead of $host would solve your problem, and generally would be a safer solution.
This is better than $host:$server_port because it uses the port as present in the URL, unlike $server_port which uses the port that nginx listens on.
Could you confirm this works for you, we'll update our example nginx config then