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
#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
# change to the httpd conf directory to create the workers.properties file cat > /etc/httpd/conf/workers.properties << EOF
# 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)
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
# Set the jk log level [debug/error/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