Main Content

Linking Apache httpd to Apache Tomcat

Archive - Originally posted on "The Horse's Mouth" - 2005-09-05 18:47:21 - Graham Ellis

Current connectors are jk and proxy; jserv, warp and jk2 are deprecated. As well as httpd and Tomcat downloads, you'll need mod_jk and then you'll need to configure it. I've seen some long explanations ... so here's a "bare bones" for the configuration files:

Onto the end of httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkMount /*.jsp catkin


Into the workers property file mentioned

worker.list=catkin
worker.catkin.type=ajp13
worker.catkin.host=localhost
worker.catkin.port=8009


Full Story, including why you need to make the link, in our solutions centre. Training in installing and configuring Apache httpd and Apache Tomcat, and on using both the jk and proxy connectors on our Deploying Apache httpd and Tomcat course

Update - 10th December 2005. The story's updated again. With the new Apache 2.2 httpd server, the jk support is provided as part of the download and no longer has to be sourced separately - a good move that removes at least one loop from the process.