You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Narendra Verma <na...@impetus.co.in> on 2008/03/25 09:00:00 UTC

[users@httpd] How can i bound an web application route to sepecific worker when mod_proxy_balaner is used.

Hi all,

I have configuration like 

 

<VirtualHost _default_:1100>

 

     ServerName 192.168.99.29:1100

 

     <Proxy balancer://loadBalancer>

       BalancerMember ajp://192.168.98.62:11009 route=tomcat2 loadfactor=1

        BalancerMember ajp://192.168.96.181:12009 route=tomcat1 loadfactor=1

     

    </Proxy>

    

    <Location /gateway>

            ProxyPass balancer://loadBalancer/gateway  lbmethod=byrequests
stickysession=JSESSIONID  

    </Location>

 

    <Location /security>

        ProxyPass balancer://loadBalancer/security  lbmethod=byrequests
stickysession=JSESSIONID 

    </Location>

   

 </VirtualHost>      

 

Here I am having two webapp  : 1. gateway 2. security 

Any request related to this web app come then it would be load balanced.

But what I want specifically that :

 Can I bound my '/security' web app can be routed to only 'tomcat1' and
'/gateway' web app can be routed to both 'tomcat1' and 'tomcat2' .

 

This is very much important to know.

So please let me know if any body can solve this problem.

 

Narendra

Impetus