Connecting Apache and Tomcat through mod_jk

Mod JK is the Apache Tomcat Connector.   Allows one to serve Tomcat webapps from Apache Http server.

Steps to install.
Note: This is based off my machines setup Apache 2.2.14, Tomcat 6, Windows 7 64 Bit, Mod JK 1.2.28

1. Download Apache webserver, Install it and verify it is running see “” for more information.

2. Download Tomcat, Install it and verify it is running. See “” for more information

3. Download the Apache Tomcat Connector and copy it to [APACHE_ROOT]/modules. See for more information.

I was able to download the MOD_JK here

4. Create a “” file and place it at [TOMCAT_ROOT]/conf/jk

AJP13 worker is the preferred worker type that JK uses for communication between web server and Tomcat. Here is a simple implementation of the file


5. Edit the Apache Configuration file [APACHE_ROOT]/conf/httpd.conf in the following way

LoadModule jk_module /modules/
Include "[PATH_TO_TOMCAT]/conf/auto/mod_jk.conf"

6. Edit Server.xml in [TOMCAT_ROOT]/conf in the following manner.

Under the <Server> node add this

<Listener className = "org.apache.jk.config.ApacheConfig" 
jkLog="logs/mod_jk.log" jkDebug="info" noRoot="false"/>

Under the <Engine> node add this

Restart Tomcat.. You should see a new file [TOMCAT_ROOT]/conf/auto/mod_jk.conf

Restart Apache.. you should be good