Installing mod_jk on Apache 2.2 on Fedora 12

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 to find the right version
cd /etc/httpd/conf/
# change to the httpd conf directory to create the file cat > /etc/httpd/conf/ << EOF

  1. Define 1 real worker using ajp13


  1. Set properties for worker1 (ajp13)

vi httpd.conf

  1. add these lines
  2. Load mod_jk module

 # Update this path to match your modules location
 LoadModule    jk_module  modules/
 # Declare the module for <IfModule directive> (remove this line on Apache 2.x)
 AddModule     mod_jk.c
 # Where to find
 # Update this path to match your conf directory location (put next to httpd.conf)
 JkWorkersFile /etc/httpd/conf/
 # 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