Project

General

Profile

Actions

Patch #6807

closed

internal hostname included in back_url

Added by Albert Rosenfield about 14 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-02
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Holger Just 2 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;
Actions

Also available in: Atom PDF