Content
You are here:
Reaching OpenProject behind a reverse proxy.
Added by Ramis Sabri over 4 years ago
Hi,
i installed OpenProject on SLES 12 SP4 and OpenProject is behind a reverse proxy.
I can reach OpenProject through, for example, openproject.mydomain.com and can login. After login i am trying to go to the work packages and getting an error because OpenProject is navigating to hostname.mydomain.com instead of openproject.mydomain.com
If I click on the OpenProject Logo then i am forwarded to hostname.openproject.com and that is wrong.
Do you have any idea what kind of configuration would help?
-> I've done the hostname configuration and that is right (openproject.mydomain.com)
-> I tried ProxyPreserveHost to apache
Thank you in advance.
Replies (3)
I'm currently stuck with the same problem. Although I do not (yet) have the solution, I guess these are similar issues:
Hi Tobias, Ramis,
in my experience, this always boils down to one of the two issues:
Host name
setting in OpenProject. Check that your host name is set correctly withopenproject run bundle exec rails runner "puts Setting.host_name"
. Note: This value gets written by the package wizard with the host name value you entered there. Check/etc/openproject/installer.dat
to correct or you will be facing this issue on every run ofopenproject configure
ProxyPreserveHost
and similar directives come into play.I've tried to document this as best as we can in https://docs.openproject.org/installation-and-operations/installation/packaged/#install-apache2-web-server-default under "External SSL/TLS termination".
Best
Oliver
Hi Oliver,
thank you for your response.
In my case i had to add "RequestHeader unset Authorization" additionally in my vhosts-config on my apache behind the ReverseProxy.
And one more info. After running "openproject configure" my working vhosts.config file was overwritten and my configuration was deleted. Maybe it would be possible if running "openproject configure" does not overwrite the existing vhosts.conf file.
Kind Regards
Ramis