Project

General

Profile

Redirect Issue through SSL Proxy

Added by Frank Zebre about 8 years ago

I'm on windows and using thin to host redmine http on port 3001. I'm using nginx to ssl proxy port 3002. All of this for testing btw as we want to setup our redmine on https. Problem is some links (almost all buttons like create or next) redirect to the wrong address. Accessing redmine through https://hostname:3002/projects/tickets works fine, but if (for example) I click on the Home link in the top left it redirects to https://hostname/my/page (excluding the port number). This also happens on submitting a new ticket. I'm very new to all of this (inheriting an install) so I'm lost on where to look. Any help would be greatly appreciated!


Replies (3)

RE: Redirect Issue through SSL Proxy - Added by Frank Zebre about 8 years ago

So no one has experience redirecting links in Redmine to go to the correct address? My guess has been to do something in Routes.rb but I am not sure what I am doing in this file.

RE: Redirect Issue through SSL Proxy - Added by Tobias Arndt about 8 years ago

Dear Frank,

please post your nginx configuration.

Best regards,

Tobias

RE: Redirect Issue through SSL Proxy - Added by Frank Zebre about 8 years ago

Yup sorry nginx config was it. I'm new to all parts of this so I was just searching all avenues. Turns out that

proxy_set_header Host $host

needed to be changed to

proxy_set_header Host $http_host

to get the proxy to use the whole address including the port#.

Thank you for responding though!

    (1-3/3)