I am using AJP to connect to tomcat. Entry in the config file looks like <Proxy balancer://cluster> BalancerMember ajp://myserver:8009 route=node2 ProxySet lbmethod=bytraffic ProxySet stickysession=JSESSIONID </Proxy> Hope this answers your question. Regards, Niranjan On 03/30/2016 11:50 AM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Niranjan, On 3/30/16 2:15 PM, Niranjan Rao wrote:Greetings, My first post to this mailing list. I have apache2 load balancing working perfectly based on session affinity. Traffic does get directed properly to appropriate tomcat server. We are trying to use same servers to serve some REST API calls. These calls don't have a session, however tomcat honouring the request does maintain some state and we would like to redirect the traffic to same tomcat based on some header value. Tried searching and reading documents from apache web site, but have not figured it out yet. Can I load balance based on header value? It seems to be doable, but could not find any example or how-to.Which module are you using to proxy httpd -> Tomcat? - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlb8H+0ACgkQ9CaO5/Lv0PC5EACgusxMWIhLosqqSi2GTgS/wCCE 1bgAnilhfPcRq1iZkLRibCHsKuZfkuFF =vb8S -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx