Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

REPOST: Setting up tomcat with apache2 on Debian

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Setting up Tomcat 5 with Apache2 on Debian - I have a working apache 2 install and a working Tomcat 5 install. I am now looking to link the two, using mod_jk. I have been searching on this for a couple of weeks now but am yet to find any that actually work. I am looking..

Debian, apache2 and php - Hi I'm trying to have a web server at home. I'm using debian sarge. Does apache use php after install of php and apache ? I'm trying all and : want save a file and run..

Apache2 Debian second virtual host - Hello, I defined two virtual hosts. The first one works fine. and work as expected. However, in the second host, works but for some reason I have not been able to figure out, cgi-bin is appended to and..

Index.php not executing (Apache2 & websvn on debian.) - I want to use websvn to view my on a laptop and so only need a minimal config. Hoped it would work out of the box like Debian normally does but... and both present a download option, instead of executing the..

Connection between Apache2 + Tomcat 4.1 - I've read and search the google but have no luck. I got Apache 2, Tomcat 4.1, and Cocoon running on my Windows XP. Now, how do I connect the Apache with Tomcat? It seems there are a few namely mod_jk2 and Question: 1. Which one..
Author Message
splodge

External


Since: Nov 08, 2005
Posts: 6



(Msg. 1) Posted: Sun Nov 13, 2005 11:55 am
Post subject: REPOST: Setting up tomcat with apache2 on Debian
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: REPOST: Setting up tomcat with apache2 on Debian 
Back to top
Login to vote
jim shirreffs

External


Since: Apr 17, 2005
Posts: 9



(Msg. 2) Posted: Thu Nov 17, 2005 3:55 pm
Post subject: Re: REPOST: Setting up tomcat with apache2 on Debian [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"splodge" <splodge.DeleteThis@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
#

 >> Stay informed about: REPOST: Setting up tomcat with apache2 on Debian 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]