Patch #6807
closedinternal hostname included in back_url
0%
Description
Hi
The documentation recommends that Redmine run behind a reverse proxy such as nginx for doing SSL and caching.
Is it on purpose that the internal URL ("localhost" in my case) rather than the external URL from Administration --> Settings --> General --> Host_name is exposed in this configuration?
Every time a user hits a page and is redirected to the login page, the back_url parameter in the query string contains the host "localhost".
Attached is a patch to fix this, in case it is not intentional.
Files
Updated by Holger Just 3 months ago
- Status changed from New to Closed
This patch is unnecessary and does not solve the original issue.
Instead, you should configure your webserver / proxy to pass on he original Host
header which is then used to generate redirect URLs. For nginx, this can be achieved by adding this to the respective location:
proxy_set_header Host $host;