Previously I blogged about installing Mod_jk with Tomcat 5.5 on Linux. This time I’m going to install Mod_jk aka Tomcat Connector on Windows. The binary version can be downloaded here:

http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/

I downloaded mod_jk-1.2.28-httpd-2.2.3.so – renamed to mod_jk.so and copied to

C:\wamp\bin\apache\Apache2.2.11\modules

I create  C:\wamp\bin\apache\Apache2.2.11\conf\workers.properties with the following content

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8010 #Check your ajp13 port!

All files in C:\wamp\alias are included automatically, so even if they are actually meant for aliases I will place my mod_jk configuration there.

I create a file c:\wamp\alias\mod_jk.conf with the following contents

# Load mod_jk module
LoadModule jk_module C:\wamp\bin\apache\Apache2.2.11\modules\mod_jk.so

# Where to find workers.properties
JkWorkersFile C:\wamp\bin\apache\Apache2.2.11\conf\workers.properties

# Where to put jk shared memory
JkShmFile C:\wamp\logs\mod_jk.shm

# Where to put jk logs
JkLogFile C:\wamp\logs\mod_jk.log

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

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

Finally I add the JkMounts I need in one of virtualhost configuration:

JkMount /kines_api/* worker1