Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-8321

mod_cluster can't ProxyPass the root context to another on the JBoss backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • TBD EAP 5
    • EAP_EWP 5.1.2
    • mod_cluster
    • None
    • JBoss Enterprise Application Platform (EAP) 5.1.2
      JBoss Enterprise Web Server 1.0.2
      mod_cluster 1.0.10.GA_CP02

    • Workaround Exists
    • Hide

      This works correctly when changing the ProxyPass to a RewriteRule:

      RewriteEngine On
      RewriteRule ^/(.*)$ /app/$1 [PT,L]

      Show
      This works correctly when changing the ProxyPass to a RewriteRule: RewriteEngine On RewriteRule ^/(.*)$ /app/$1 [PT,L]
    • The bug is fixed by the upgrade of mod_cluster to MOD_CLUSTER_1_0_10_GA_CP05.
    • NEW

      mod_cluster VHost is configured like so:

      Listen 8000
      <VirtualHost *:8000>
      <Directory />
      Order deny,allow
      Deny from all
      Allow from all
      </Directory>

      <Location /mod_cluster-manager>
      SetHandler mod_cluster-manager
      Order deny,allow
      Deny from all
      Allow from all
      </Location>

      KeepAliveTimeout 60
      MaxKeepAliveRequests 0

      ServerAdvertise Off

      ManagerBalancerName mycluster

      </VirtualHost>

      CreateBalancers 1

      And traffic ProxyPassed like so, so that the application is served from the root context through Apache:

      1. Vhost Section
        ProxyPass / balancer://mycluster/app/ stickysession=JSESSIONID nofailover=On
        ProxyPassReverse / https://website.com/app/

      And JBoss is configured for empty path session cookies so that the cookie can properly apply:

      <Context cookies="true">
      <SessionCookie path="/" />
      </Context>

      Requests without a cookie work fine. Once the cookie is created and used, mod_cluster just returns 503s and worker errors:

      [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state

              rhn-engineering-jclere Jean-Frederic Clere
              rhn-support-aogburn Aaron Ogburn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: