Project

General

Profile

Actions

Defect #13077

closed

redirect to wrong back_url behind Apache reverse proxy

Added by Mathias Walter about 11 years ago. Updated about 6 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I've configured my Apache proxy exactly as described in http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI#With-a-reverse-proxy but Redmine redirects to a wrong URL by removing the path "/redmine". Hence, I cannot login and use the system. It works well with the local domain.

That happens after migration from 1.4 to the latest version 2.2.2 and seem to be independent of the 'Settings->General->Host name and path'.

It does not help either, if I change the environment.rb and set any combination of Redmine::Utils::relative_url_root or ActionController::Base.relative_url_root.

I also tried to enable/disable the browsers referer options but it didn't help.

Environment:

Rails 3.2.11
Ruby 1.9.3-p374
Redmine 2.2.2 r11293

Settings->General->Host name and path:

subdomain.domain.tld/redmine

Proxy config:
ProxyPass /redmine http://localserver:3000/
ProxyPassReverse /redmine http://localserver:3000/

Now, the requested URL

http://subdomain.domain.tld/redmine
changes to
http://subdomain.domain.tld/login?back_url=http%3A%2F%2Fsubdomain.domain.tld%2F


Related issues

Related to Redmine - Defect #12102: Installed Redmine in a sub-URI: Links are generated not correctlyNew

Actions
Actions

Also available in: Atom PDF