1 Reply Latest reply on Mar 27, 2014 8:24 AM by Jean-Frederic Clere

    Route requests based on server group

    Juan A. S. Newbie



      We have the same application in different servers and different server-groups. We need this because the application deployed in each server-group has different configurations.


      Server Groups:

      • app1-conf1
      • app1-conf2


      • server1-app1-conf1 (in group app1-conf1)
      • server2-app1-conf2 (in group app1-conf2)


      Apache is configured this way (in a virtualhost):


      ProxyPass /app/ balancer://mycluster/app/ stickysession=JSESSIONID|jsessionid nofailover=On


      The problem is because the two applications are deployed in the same context, and Apache thinks all the contexts are the same app, and they aren't. Is there any way to tell Apache to route the request to a certain server-group? Or any workaround?


      Regards and thanks in advance.


      Using JBoss AS 7.1.0

      Centos 6.0 x64

      Sun/Oracle Java jdk1.7.0_15

      Apache 2.2.15 (httpd-2.2.15-5.el6.centos.x86_64)