REPOST: Setting up tomcat with apache2 on Debian

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


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2005
splodge
 
Posts: n/a
Default REPOST: Setting up tomcat with apache2 on Debian

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
  #2 (permalink)  
Old 11-17-2005
jim shirreffs
 
Posts: n/a
Default Re: REPOST: Setting up tomcat with apache2 on Debian


"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
#




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0