workers.properties
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
#worker.list=wlb,jkstatus
worker.list=jkstatus,tomcat41,tomcat55
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
#worker.ajp13w.type=ajp13
#worker.ajp13w.host=localhost
#worker.ajp13w.port=8009
worker.tomcat41.type=ajp13
worker.tomcat41.host=localhost
worker.tomcat41.port=8009
worker.tomcat55.type=ajp13
worker.tomcat55.host=localhost
worker.tomcat55.port=18009
#
# Defining a load balancer
#
#worker.wlb.type=lb
#worker.wlb.balance_workers=ajp13w
#
# Define status worker
#
worker.jkstatus.type=status
jk.conf
<IfModule mod_jk.c>
# Where to find workers.properties
JkWorkersFile /etc/apache2/workers.properties
# Where to put jk logs
JkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel warn
# 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 JSPs for context / to worker named ajp13
# JkMount /*/*Servlet ajp13
# JkMount /*.jsp ajp13
# tomcat41 webapps
JkMount /tomcat41app/* tomcat41
# tomcat55 webapps
JkMount /tomcat55app/* tomcat55
</IfModule>