I
I
Ilya Evseev2014-08-17 16:52:56
Redmine
Ilya Evseev, 2014-08-17 16:52:56

[Solved] How to stop Redmine from redirecting from https to http?

There is an Apache + Redmine server.
At the entrance to the locale, nginx with https is launched, it proxies incoming requests from port 443 to Apache at 80.
In the nginx settings there is " proxy_set_header X-Forwarded-Proto https; "
Apache has " SetEnvIf X-Forwarded-Proto https HTTPS=on ". Redmine has " Protocol: HTTPS
" selected in Administration=>Settings=>General . However, Redmine still constantly redirects from https to http, for example, after editing the Issue. Question: how to wean him from this? Answer: proxy_set_header is ignored if it is not in the same location as proxy_pass. Because of this, Nginx did not forward Apache X-Forwarded-Proto.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorruch, 2014-08-18
@zorruch

why not just describe the rewrite in nginx from http to https? And on the redmine side, you don’t have to reconfigure anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question