Open link in a new tab

Content

Expand project menu

Reaching OpenProject behind a reverse proxy.

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.

Message actions

I'm currently stuck with the same problem. Although I do not (yet) have the solution, I guess these are similar issues:

Message actions

Hi Tobias, Ramis,

in my experience, this always boils down to one of the two issues:

  1. Misconfigured Host name setting in OpenProject. Check that your host name is set correctly with openproject 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 of openproject configure
  2. Misconfigured request hostname. This is where the 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

Message actions

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