Re: Antwort: [users@httpd] Apache Http sticky session problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Regarding the 'quotes' issue - I'll explain...

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

jvmRoute="tc1"

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

BalancerMember ajp://127.0.0.1:18009 route=tc1

  For a couple of days I had...

route="tc1"

  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
quotes.

  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://127.0.0.1:18009 route=tc1
  BalancerMember ajp://127.0.0.1:28009 route=tc2
#  BalancerMember ajp://localhost:18009 route=tc1
#  BalancerMember ajp://localhost:28009 route=tc2
</Proxy>

# 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 127.0.0.1
</Location>

====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"
               redirectPort="18443"
               protocol="HTTP/1.1"
               connectionTimeout="20000" />

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

    <Engine name="Catalina"
            defaultHost="localhost"
            jvmRoute="tc1">

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

      <Host name="localhost"
            appBase="webapps"
            unpackWARs="true"
            autoDeploy="true"
            xmlValidation="false"
            xmlNamespaceAware="false">

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

====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 (rob.rstuff@xxxxxxxxxxxxxx)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux