title: mod_proxy: sticky session does not work
body: <p>I have two JBoss AS 7 servers and I'm doing load balancing using <code>mod_proxy</code>. Almost everything works fine besides sticky sessions. I have session id in a cookie not in the URL as <code>JSESSIONID</code>.</p>
  
  <p>Here is my apache configuration:</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt;
  
     ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=Off
     ProxyPassReverse / balancer://tutcluster/
     ProxyPassReverse / http://server1:8080/
     ProxyPassReverse / http://server2:8080/
     ProxyPreserveHost On
     ProxyRequests Off
  
     &lt;Location / &gt;
        Order deny,allow
        Allow from All
     &lt;/Location&gt;
  
     &lt;Proxy balancer://mycluster/&gt;
        BalancerMember http://server1:8080 route=jbossWeb1 retry=60
        BalancerMember http://server2:8080 route=jbossWeb2 retry=60
     &lt;/Proxy&gt;
  &lt;/VirtualHost&gt;
  </code></pre>