title: How do I enable sticky load balancing based on session identifiers using apache mod_proxy_balancer
body: <p>Our proxy configuration (in httpd.conf) to send requests to 2 JBoss instances are given below is based on <a href="http://httpd.apache.org/docs/2.1/mod/mod_proxy_balancer.html" rel="nofollow noreferrer">mod_proxy_balancer</a></p>
  
  <pre><code>&lt;Proxy balancer://mycluster&gt;
  Allow from all
  BalancerMember http://192.168.1.2:9080
  BalancerMember http://192.168.1.2:8080
  &lt;/Proxy&gt;
  
  ProxyPass /app balancer://mycluster/app
  ProxyPassReverse /app  http://192.168.1.2:9080/app
  ProxyPassReverse /app  http://192.168.1.2:8080/app 
  </code></pre>
  
  <p>How do I enable sticky load balancing based on session identifiers. Am I supposed to set the following flag as part of the Proxy declaration? It doesn't seem to take any effect. How would I debug to see if this is working fine.</p>
  
  <p>SetEnv BALANCER_SESSION_STICKY JSESSIONID</p>