httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Stewart" <>
Subject Re: [users@httpd] Antwort: [users@httpd] Apache Http sticky session problem.
Date Fri, 08 Aug 2008 08:11:58 GMT
Regarding the 'quotes' issue - I'll explain...

  In the server.xml file for the Tomcat server you name your jvm route
something like...


  And in my case, the Apache httpd.conf, you name the route like...

BalancerMember ajp:// route=tc1

  For a couple of days I had...


  because I had copy/pasted the value from the XML! I understand that
this may not apply to you directly, but take note that in the usual
configuration files that are NOT XML they mostly do not require

  Here's a snippet from my Apache httpd.conf file that show how I load
balanced my set-up. I needed only a specific sub-URL, hence the weird
ProxyPass, but it *should* work for other URL settings.

====Start Snippet

<Proxy balancer://mycluster>
# Does not seem to matter which one of these are used for the ajp path.
  BalancerMember ajp:// route=tc1
  BalancerMember ajp:// route=tc2
#  BalancerMember ajp://localhost:18009 route=tc1
#  BalancerMember ajp://localhost:28009 route=tc2

# Using JSESSIONID or JSESSIONSSO for stickysession seems to make no difference.
ProxyPass /myServer   balancer://mycluster/myServer
stickysession=JSESSIONID lbmethod=bytraffic

<Location /balancer-manager>
  SetHandler balancer-manager

  Order Deny,Allow
  Deny from all
  Allow from

====End snippet

Then my Tomcat1 server.xml (change ports etc for the 2nd Tomcat)
contains this (I've left some parts out)...

====Start snippet

  <Service name="Catalina">
    <Connector port="18080"
               connectionTimeout="20000" />

    <Connector port="18009"
               protocol="AJP/1.3" />

    <Engine name="Catalina"

      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" />

      <Host name="localhost"

  This is here so that all servlets under the host have single
sign on authentication.
className="org.apache.catalina.authenticator.SingleSignOn" debug="0"/>

====End Snippet

  Again - This is how I did it using Apache 2.2 and Tomcat 6 - you're
set-up is different and this may not solve your problems. Just thought
it might help.

Rob (

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message