This is a discussion on REPOST: Setting up tomcat with apache2 on Debian within the Apache Web Server forums, part of the Web Server and Related Forums category; I put this up some time last week but I think the news server went fubar as I can no ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I put this up some time last week but I think the news server went fubar
as I can no longer see the message. I am looking for instructions for how to set up Tomcat5 with Apache2 on Debian using mod_jk. I have working apache2 and tomcat5 setups, but can not find any concise instructions on how to combine the two. I have been using Linux for about a year but have only just got into the apache / tomcat thing, so the instructions will need to be at a fairly basic level. MAny thanks for any help |
|
|||
|
"splodge" <splodge@blurryfox.com> wrote in message news:4377623c$0$82650$ed2619ec@ptn-nntp-reader03.plus.net... >I put this up some time last week but I think the news server went fubar as >I can no longer see the message. > > I am looking for instructions for how to set up Tomcat5 with Apache2 on > Debian using mod_jk. I have working apache2 and tomcat5 setups, but can > not find any concise instructions on how to combine the two. I have been > using Linux for about a year but have only just got into the apache / > tomcat thing, so the instructions will need to be at a fairly basic level. > > MAny thanks for any help maybe this will help I run three Tomcats so ignore 5_1 and 5_2, here from httpd.conf ====================================== #Jim begin LoadModule jk_module modules/mod_jk.so # # Configure mod_jk # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info #Jim end ================================== Here from workers.properties ================================== # # workers.properties # # list the workers by name worker.list=Tomcat5, Tomcat5_1, Tomcat5_2, loadbalancer # ------------------------ # First Tomcat server # ------------------------ worker.Tomcat5.port=8009 worker.Tomcat5.host=localhost worker.Tomcat5.type=ajp13 # Specify the size of the open connection cache. #worker.Tomcat5.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.Tomcat5.lbfactor=100 # ------------------------ # Second Tomcat server # ------------------------ worker.Tomcat5_1.port=8010 worker.Tomcat5_1.host=localhost worker.Tomcat5_1.type=ajp13 #worker.Tomcat5_1.cachesize worker.Tomcat5_1.lbfactor=100 # ------------------------ # Third Tomcat server # ------------------------ worker.Tomcat5_2.port=8011 worker.Tomcat5_2.host=localhost worker.Tomcat5_2.type=ajp13 #worker.Tomcat5_2.cachesize worker.Tomcat5_2.lbfactor=100 # ------------------------ # Load Balancer worker # ------------------------ # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # ----> If a worker dies, the load balancer will check its state # once in a while. Until then all work is redirected to peer # worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=Tomcat5, Tomcat5_1, Tomcat5_2 worker.loadbalancer.sticky_session=1 worker.loadbalancer.local_worker_only=1 # Status worker for managing load balancer worker.status.type=status # # END workers.properties # |