2018-10-14: Note that this article only contains information on the installation of mod_jk, not the configuration. You still need to configure the workers and the settings in your httpd.conf.
WARNING: A NEWER VERSION IS AVAILABLE ON THE APACHE SITE. Unfortunately, this version is not pre-compiled for linux, so you have to do this yourself.
This will install mod_jk 1.2.28 32bit for httpd 2.2 on Fedora 12
tomcat server is at localhost
cd /etc/httpd/modules #change to the modules directory to download the mod_jk module
wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.31/i386/mod_jk-1.2.31-httpd-2.2.x.so
#or go to http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/ to find the right version
mv mod_jk-1.2.28-httpd-2.2.X.so mod_jk.so
cd /etc/httpd/conf/
# change to the httpd conf directory to create the workers.properties file cat > /etc/httpd/conf/workers.properties << EOF
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
EOF
vi httpd.conf
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.so
# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
AddModule mod_jk.c
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile /var/log/httpd/mod_jk.shm
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile /var/log/httpd/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] "
# Send everything for context /examples to worker named worker1 (ajp13)
JkMount /examples/* worker1