Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Reaching OpenProject behind a reverse proxy.

Reaching OpenProject behind a reverse proxy.

Added by Ramis Sabri about 5 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)

RE: Reaching OpenProject behind a reverse proxy. - Added by Tobias Schleinkofer over 4 years ago

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

  • https://community.openproject.com/topics/10633
  • https://community.openproject.com/topics/11798

RE: Reaching OpenProject behind a reverse proxy. - Added by Oliver Günther over 4 years ago

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

RE: Reaching OpenProject behind a reverse proxy. - Added by Ramis Sabri over 4 years ago

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

  • (1 - 3/3)
Loading...