You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tang Dong <do...@uiuc.edu> on 2003/01/26 18:08:19 UTC

Fw: Help for integration between Tomcat 4.1 and Apache 2.0

----- Original Message ----- 
From: Tang Dong 
To: tomcat-user-subscribe@jakarta.apache.org 
Sent: Sunday, January 26, 2003 11:42 PM
Subject: Help for integration between Tomcat 4.1 and Apache 2.0


Hi, I get problem when try to integrate tomcat 4.1 with apache 2.0. The log file says:

[Sun Jan 26 23:33:07 2003] proj2003 rabi 0.000000
[Sun Jan 26 23:33:08 2003] proj2003 rabi 0.000000
[Sun Jan 26 23:33:08 2003] proj2003 rabi 0.000000

in which "proj2003" is my worker. and "rabi" is my host name.

Also I configured the bother "http.conf" of apache and "worker.properties" according to the manual. In the files, I add:
#-------------------------
# HTTP.CONF
# 
# The following is added for integration with TomCat
#
# Load mod_jk module
LoadModule jk_module "d:/Proj2003/Apache2.04/Apache2/modules/mod_jk.so"

# Declare the module for <IfModule directive>
# AddModule mod_jk.c

# Where to find workers.properties
JkWorkersFile "d:/Proj2003/Apache2.04/Apache2/conf/workers.properties"

# Where to put jk logs
JkLogFile "d:/Proj2003/Apache2.04/Apache2/logs/mod_jk.log"

# Set the jk log level [debug/error/info]
JkLogLevel error 

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " 

# JkOptions indicate to send SSL KEY SIZE, 
JkOptions -ForwardKeySize -ForwardURICompat -ForwardDirectories 

# JkRequestLogFormat set the request format 
JkRequestLogFormat "%w %V %T" 

# Send servlet to worker named proj2003
JkMount /*/servlet/ proj2003

# Send JSPs to worker named proj2003
JkMount /*.jsp proj2003

JkMount /examples/servlet/* proj2003
JkMount /examples/*.jsp proj2003

#----------------------------


#--------------------
# worker.properties
# Define 1 real worker using ajp13
worker.list=proj2003 

# Set properties for proj2003 (ajp13)
worker.proj2003.type=ajp13 
worker.proj2003.host=localhost 
worker.proj2003.port=11009 
worker.proj2003.lbfactor=50 
worker.proj2003.cachesize=10 
worker.proj2003.cache_timeout=600 
worker.proj2003.socket_keepalive=1 
worker.proj2003.socket_timeout=300 

 
Can you give me any suggestion to overcome this problem. Thanks a lot.