We're using Apache 1.3.27 on solaris with mod_jk2 to connect to two JBoss/Tomcat instances
listening on separate ports. I experienced the same thing you described, all requests going to
one of the jk2 ports.
However, if I shutdown the JBoss/Tomcat instance that was getting all of requests, then the
other instance would start gettng the traffic. After restarting the "primary" instance I examined
jk2.log. It looked like the requests were heading to the correct server, but then would be "redirected"
to the primary.
I'm using (or misusing?) the load balance feature to accomplish the splitting instead of the <VirtualHost>
or <Location>.
Not sure why it was necessary, but I had to add explicit entries for index.jsp for both apps for it
it to function correctly. Other URIs were not confused. From workers2.properties:
[channel.socket:localhost:8009] info=Ajp13 forwarding over socket:8009 debug=7 tomcatId=localhost:8009 group=app1 disabled=0
[channel.socket:localhost:8709] info=Ajp13 forwarding over socket:8709 debug=7 tomcatId=localhost:8709 group=app2 disabled=0
# # app1-test servlet/jsp uris # static content served # by apache http # [uri:/app1-test] debug=0 group=app1 [uri:/app1-test/] debug=0 group=app1 [uri:/app1-test/index.jsp] debug=0 group=app1 [uri:/app1-test/*.jsp] debug=0 group=app1 [uri:/app1-test/admin/*.jsp]
# # app2-test servlet/jsp uris # [uri:/app2-test] debug=0 group=app2 [uri:/app2-test/] debug=0 group=app2 [uri:/app2-test/index.jsp] debug=0 group=app2 [uri:/app2-test/*.jsp] debug=0 group=app2 [uri:/app2-test/login/*] debug=0 group=app2
HTH, Robert
Joseph Shraibman wrote:
I have multiple ip based virtual hosts, so in tomcat I configured three seperate engines with connectors on different ports, and in the apache <VirtualHost> I JkMount the worker that I configured in worker.properties to connect on a specific port. This works fine for mod_jk, but when I try mod_jk2 it insistes on using the default host of the engine that has the connector listening on port 8009.
This is how I configure jk2: <Location "/*.jsp"> JkUriSet worker ajp13:localhost:8019 </Location>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
