Main Content

Magnolia Community Forums: Get help with Magnolia: Magnolia 5 Apache/Tomcat Reverse Proxy Settings


  • tmccrary
    tmccrary
    Full name: Tony McCrary
    Posts: 3
    Last post: May 3, 2016 11:31:20 PM
    Registered on: May 3, 2016
    Magnolia 5 Apache/Tomcat Reverse Proxy Settings
    #1 by tmccrary on May 3, 2016 4:37:36 PM

    I'm having an issue since upgrading to Magnolia 5 where adminCentral loads and I can login and get the main menu but when I click on pages, security, the section loading screen comes up and never loads.

    This only happens when going through my apache httpd front end. If I go directly to the backend tomcat instance hosting the app, it works fine.

    My reverse proxy setup is below, can anyone tell me what I'm doing wrong? I've looked at the connections being made in Chrome's dev tools but none of the javascript/GWT/etc. requests are failing in any obvious way.

    Thanks!


    <VirtualHost 1.1.1.1:80>

    ServerName test.myApp.io
    DocumentRoot /srv/www/myApp.io

    RewriteEngine On
    RewriteRule ^/myAppTest/(.*) /$1 [R]

    <Location />
    ProxyPassReverse /
    SetOutputFilter INFLATE;proxy-html;DEFLATE
    ProxyHTMLURLMap /myAppTest /
    </Location>

    ProxyRequests Off
    ProxyPreserveHost Off

    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>

    <Proxy balancer://cluster>
    BalancerMember ajp://my.backend.tomcat.inst:8009 loadfactor=1 route=public1
    </Proxy>

    ProxyPass / balancer://cluster/myAppTest/ stickysession=JSESSIONID
    ProxyPassReverse / http://test.myApp.io/

    ProxyPassReverseCookieDomain my.backend.tomcat.inst test.myApp.io
    ProxyPassReverseCookiePath /myAppTest /

    </VirtualHost>

  • tmccrary
    tmccrary
    Full name: Tony McCrary
    Posts: 3
    Last post: May 3, 2016 11:31:20 PM
    Registered on: May 3, 2016
    Re: Magnolia 5 Apache/Tomcat Reverse Proxy Settings
    #2 by tmccrary on May 3, 2016 6:26:10 PM

    I've tried to change to a direct virtual host mapping on apache and tomcat, but ${servername} is apparently no longer defined in Magnolia 5, so you can't select the correct magnolia.properties web app configuration! Yay!

  • tmccrary
    tmccrary
    Full name: Tony McCrary
    Posts: 3
    Last post: May 3, 2016 11:31:20 PM
    Registered on: May 3, 2016
    Re: Magnolia 5 Apache/Tomcat Reverse Proxy Settings
    #3 by tmccrary on May 3, 2016 11:31:20 PM

    So from what I can tell GWT doesn't support mapping one resource context to a different one on the backend, e.g.:

    mySite.com/ to myTomcatInstance/magnoliaSite

    I guess I'll just have to redirect to a matching resource context on the front end. :(

  • Brensonle
    Brensonle
    Full name: Den Rayman
    Posts: 1
    Last post: Nov 28, 2016 2:10:58 PM
    Registered on: Nov 28, 2016
    Re: Magnolia 5 Apache/Tomcat Reverse Proxy Settings
    #4 by Brensonle on Nov 28, 2016 2:10:58 PM

    In recent days and I noticed at the same singularity in the behavior of the program. Do you think this could be due to the fact that I am using a local proxy advanced.name, or it may not be the cause?

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/