Hi Jeremy,

Have you verified that the apps work as expected when not using load
balancing?  Then we know where the problem is...

I don't know of any examples of loadbalancing with jk2.  If you get this to
work you can write a tut!

Here's a link to an example using jk1.
http://raibledesigns.com/tomcat/

If that doesn't help here's all the other links I've found for using jk2...
http://cymulacrum.net/writings/tomcat5/book1.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
http://www.linuxjava.net/howto/webapp/
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
http://www.thinlizard.com/lizard/modjk2.html
http://jakarta.apache.org/tomcat/faq/connectors.html

btw, how are you doing the forwarding in apache's httpd.conf file?  Using
the Location directive? Or are you setting them in worker2.properties?

hth,
Adrian Lanning


----- Original Message ----- 
From: "Jeremy Nix" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 15, 2004 9:10 AM
Subject: Need example configuration for Apache/Tomcat/JK2 and multiple
virtual hosts


I have a need to have Apache and Tomcat both handle requests for
multiple IPs (hosts).  I've initially set up a httpd.conf that defines 2
virtual hosts A and B.  Both use JSPs/Servlets, so they both have
references to JK2.  I've kept the JK2 configuration simple and used
localhost:8009 for both hosts.  On the tomcat side, I have 1 engine with
2 separate hosts listening on their respective IP's.  I've defined 3
connectors all running on the default address (localhost): NON-SSL, SSL
and AJP/JK2.  I also have this same configuration on 2 separate boxes
and they are both being load-balanced through a local-redirector.

This configuration seems to work as expected when I reference the
defaultHost in tomcat (virtual host A), but when I reference a page
hosted by virtual host B, I seem get unexpected errors (sometimes
recursive in nature).

So, has anybody experienced this?  Does anybody have a sample
configuration (load balancing with multiple virtual hosts) that I can
mimic?


_________________________________
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158


---------------------------------------------------------------------
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]

Reply via email to