Setting up mod jk with Apache and Tomcat

From Foochal

Jump to: navigation, search

Edit worker.properties

Edit the worker.properties in your http conf directory

vi /etc/httpd/conf/workers2.properties

The following is a valid and tested configuration

[logger]
level=DEBUG

[shm]
info=Scoreboard. Required for reconfiguration and status with  multiprocess serve  rs
file=/usr/share/tomcat5/logs/jk2.shm
size=1048576
debug=0
disabled=0

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

Edit the apache config file

On Fedora, the file is located here

vi /etc/http/conf/httpd.conf

You need to add the following snippet:

 <Location "/admin/*">
  JkUriSet worker ajp13:localhost:8009
 </Location>

Personal tools