You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Brady Erickson <be...@RoomAndBoard.com> on 2007/07/16 21:26:13 UTC

[users@httpd] Can Apache front multiple instances of Tomcat

I am trying to determine if I can have Apache front multiple instances of Tomcat all running on the same box.  The workers.properties file suggests that there is a single workers.tomcat_home.  Any help would be greatly appreciated.

Thanks in advance!

Brady Erickson

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Can Apache front multiple instances of Tomcat

Posted by Tony Guadagno <to...@guadagno.org>.
sure, apache can front multiple tomcats.  in the workers.properties, you specify a second instance and name it.  then in the jkmounts you use that second instance

like so
worker.list=ajp13, ajp13-2

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.socket_timeout=600
worker.ajp13.socket_keepalive=1


worker.ajp13-2.port=8010
worker.ajp13-2.host=localhost
worker.ajp13-2.type=ajp13
worker.ajp13-2.socket_timeout=600
worker.ajp13-2.socket_keepalive=1


then jkmount ajp13 OR
jkmount ajp13-2




***********************************************
Tony Guadagno
Guadagno Consulting
tonyg@guadagno.org
585.703.6700
***********************************************

>>> Brady Erickson <be...@RoomAndBoard.com> 7/16/2007 3:26 PM >>>
I am trying to determine if I can have Apache front multiple instances of Tomcat all running on the same box.  The workers.properties file suggests that there is a single workers.tomcat_home.  Any help would be greatly appreciated.

Thanks in advance!

Brady Erickson

---------------------------------------------------------------------
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@httpd.apache.org 
   "   from the digest: users-digest-unsubscribe@httpd.apache.org 
For additional commands, e-mail: users-help@httpd.apache.org 



Re: [users@httpd] Can Apache front multiple instances of Tomcat

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
Yes I think so...
Your best place for documentation is the JK Tomcat documentation on the 
subject.... both official and unofficial (google).

 .... you need to also read the documentation... this is conceptual... but 
in essense

JkMount /TestRemoteIp/*  worker1
    Maps the relative URI to a worker
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
    maps that to the tomcat connection port, domain and protocol

So in theory there is no problem as long ass you make sure that the Tomcats 
and Apache can all coexist on the server.
eg Apache port 80
Tomcat0 8080 connection port 8009
Tomcat1 8081 connection port 9009

So in actual fact you are mapping every single web-app to the desired 
Tomcat....

With very little modification to the above arrangement, you can do load 
sharing as well.... ie apache will round robin  between Tomcats
AND.... there is no reason why you cant have two apache's serving those 
tomcats as well.... ie full redundancy.

JK and Apache are pretty cool
Have fun



----- Original Message ----- 
From: "Brady Erickson" <be...@RoomAndBoard.com>
To: <us...@httpd.apache.org>
Sent: Monday, July 16, 2007 9:26 PM
Subject: [users@httpd] Can Apache front multiple instances of Tomcat


I am trying to determine if I can have Apache front multiple instances of 
Tomcat all running on the same box.  The workers.properties file suggests 
that there is a single workers.tomcat_home.  Any help would be greatly 
appreciated.

Thanks in advance!

Brady Erickson

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org