We're trying to get load balancing set up between
Apache and Tomcat, using mod_jserv(also trying
mod_jk). The connection itself seems to work
fantastically, and the whole
site runs fine, except for one thing: it does not
append a few characters (say "JS1" or "JS2") as
defined with the ApJServRoute directive
to the end of the session id cookie. This allows the
next request which comes into an Apache server to be
sent to the correct servlet machine,which, among other
things, has the user's current session information.
Since the "JS1" (or "JS2") isn't being appended, it's
no surprise that you eventually hit a different
servlet (Tomcat) machine which doesn't know about
your session.

We're at a bit of a loss trying to determine why this
isn't happening. Has anyone encountered this?

[We have one web servers running Apache 1.3.14 in
front, and two machines running Tomcat 3.2.1 in the
back; all upon NT 4.0 . The httpd.conf mods are right
out of the Java-Apache project's Load Balancing HOWTO,
(and yeah, it's the same httpd.conf on each web
server)]


I've hunted through the source code, and I can't
immediately see anything wrong. We've noted that
what's in the Tomcat distribution is the same as in
the Java Apache distribution (we tried both, anyway) -
so we suspect we're configuring something incorrectly.

The Apache directives of our configuration are
appended. Thanks for any insight you might be able to
provide,

Frank

=========

<IfModule mod_jserv.c>

ApJServManual on

# everything goes to the balanced set
ApJServMount default balance://set1/root

# establishes hosts in the set to balance over
ApJServBalance set1 SERV1
ApJServBalance set1 SERV2

# maps hosts to actual server DNS names
ApJServHost SERV1 ajpv12://servlet1.upoc.com:8007
ApJServHost SERV2 ajpv12://servlet2.upoc.com:8007

# establishes cookie-based routing to restrict each
session to a single host
ApJServRoute JS1 SERV1
ApJServRoute JS2 SERV2

# "shared memory" file for apache processes running on
this server
ApJServShmFile log/jserv_shm

ApJServSecretKey DISABLED

# note that the following directives are not from the
above-mentioned example
ApJServLogLevel notice
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp

</IfModule>



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to