Apache Balancing by source IP

Posted by Daniel on Server Fault See other posts from Server Fault or by Daniel
Published on 2011-11-11T15:00:59Z Indexed on 2011/11/11 17:58 UTC
Read the original article Hit count: 215

I am using Apache's Proxy Balancer to balance one sub domain (e.g. subdomain.domain.com) to an application which is located on 2 servers. Here an extract from my Apache configuration file:

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<Proxy balancer://cluster1>
    BalancerMember http://server1:28081 route=w1
    BalancerMember http://server2:28082 route=w2
</Proxy>

ProxyPass /path balancer://cluster1/path
ProxyPassReverse /path balancer://cluster1/path

My question is, if it's possible to decide with the source IP-address which BalancerMember should be used for the request? To e.g. Requests from 1.2.3.4 to Member 1?

© Server Fault or respective owner

Related posts about apache2

Related posts about proxy