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. Apache double reverse proxy

Apache double reverse proxy

Added by Sridhar Malkaram almost 4 years ago

I want to configure open project with two apache proxy servers. The first proxy server is internet facing. The second proxy server is behind NAT router.  The port 8443 from first proxy is forwarded to port 443 on second proxy server.

The first proxy server has the following directives

##PROXY1 on HOST1

<VirtualHost *:443>

ServerName openproject.myexample.com

ServerAlias www.myexample.com

ProxyPass / https://127.0.0.1:8443/ retry=0

ProxyPassReverse / https://127.0.0.1:8443/

ProxyPreserveHost On

ProxyRequests Off

ProxyVia On

</VirtualHost>

The second proxy has the following

##PROXY2 on HOST2

<VirtualHost *:443>

ServerName openproject.myexample.com

ProxyPass / http://127.0.0.1:6000/ retry=0

ProxyPassReverse / http://127.0.0.1:6000/

ProxyPreserveHost Off

ProxyRequests Off

ProxyVia Off

</VirtualHost>

However this configuration is not working when I browse https://openproject.myexample.com from HOST1. I just see a blank page.

However, when I browse at https://openproject.myexample.com from HOST2 it works fine.

I can also see other website pages on HOST2 from HOST1. For example https://www.myexample.com, which is pointing to "/var/ww/html/index.html".

Could you please let me know what I am doing wrong?


Replies (2)

RE: Apache double reverse proxy - Added by Shayn ecatern 5 months ago

You're trying to configure a setup with two Apache proxy servers. For the first server, ensure proper proxy settings like ProxyPass and ProxyPassReverse to forward traffic to the second server. You should also ensure SSL is correctly configured on both proxies, especially since you're forwarding to port 443 on the second server.

RE: Apache double reverse proxy - Added by Shayn ecatern 5 months ago

btw, if you're setting up an Apache double reverse proxy, it can be tricky but doable. The basic idea is to have Apache as a middleman between your clients and the backend servers. You would configure Apache to forward requests to another Apache server or another web server entirely.

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