5 Replies Latest reply on Oct 29, 2011 8:55 AM by Radoslav Husar

    How to combine mod_cluster automatic balancer with proxying to non-JBoss systems

    Irena Shaigorodsky Newbie

      Dear community member


      As a long time JBoss user I was frilled to discover recently that mod_cluster provides solution that eliminates the need of keeping worker.properties files, etc. I am migrating an existing configuration that had mod_ajp and mod_proxy to redirect to JBoss and non-JBoss content. The relevant snippets of configuration are below. From playing around and browsing various posts I was able to successfully register and proxy into content hosted by JBoss or httpd. What I am failing to do for some reason and did not find any working example on community site or documentation is how to add non-JBoss proxied content in the mix. I see the content routed to JBoss still and am presented with 404 page. I will be endlessly indebpt to anyone that will help me with the issue.


      Thank you in advance,






      LoadModule proxy_module modules/mod_proxy.so

      LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

      LoadModule slotmem_module modules/mod_slotmem.so

      LoadModule manager_module modules/mod_manager.so

      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so

      #LoadModule advertise_module modules/mod_advertise.so


      Listen *:7777

      <VirtualHost *:7777>


        <Directory />

          Order deny,allow

          Deny from all

          Allow from some.ip



        CreateBalancers 0

        KeepAliveTimeout 60

        MaxKeepAliveRequests 0

        LogLevel debug



      ProxyPassMatch ^(/jboss-content1/.*)$ balancer://mycluster$1

      ProxyPassMatch ^(/jboss-content2.*)$  balancer://mycluster$1





      <Proxy balancer://host1>

        BalancerMember https://host1:port1 loadfactor=1


      ProxyPassMatch ^(/content1/.*)$ balancer://host1$1


      <Proxy balancer://host2>

        BalancerMember http://host2:8080 loadfactor=1


      ProxyPassMatch ^(/content2/.*)$ balancer://host2$1