On Mon, 2009-11-23 at 15:57 +0200, Onur Ağın wrote: > Hi, > > > I am trying to define several load balancers each working on different > ports on same apache http server. > For example, calling the apache http server on 8001 should load > balance on servers a and b, while calls made to port 8002 should be > forwarded to c and d. > How can I achieve this? > > > Thanks... > > > > > > > <Proxy http://127.0.0.1:8001/ > > BalancerMember http://10.x.x.x:5101 > BalancerMember http://10.x.x.x:5102 > </Proxy> > > > ProxyPass ???? > > > <Proxy http://127.0.0.1:8002/ > > > > BalancerMember http://10.x.x.x:5103 > BalancerMember http://10.x.x.x:5104 > </Proxy> > > > > > ProxyPass ??? I suspect you should be specifying things as follows: <Proxy balancer://127.0.0.1:8001> BalancerMember http://10.x.x.x:5101 BalancerMember http://10.x.x.x:5102 </Proxy> <Proxy balancer://127.0.0.1:8002> BalancerMember http://10.x.x.x:5103 BalancerMember http://10.x.x.x:5104 </Proxy> <VirtualHost 0.0.0.0:8001> ProxyPass / balancer://127.0.0.1:8001/ </VirtualHost> <VirtualHost 0.0.0.0:8002> ProxyPass / balancer://127.0.0.1:8002/ </VirtualHost> Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer, Managed Services Manpower www.QinetiQ.com QinetiQ - Delivering customer-focused solutions GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachment:
signature.asc
Description: This is a digitally signed message part