As the version of mod_jk in Debian stable is somewhat outdated (what could have possibly changed in three years time?) we've decided to go forward and build our own. Here's a digest on how we've actually built and installed the module.
First we'll need the apache-development package:
apt-get install apache-dev
After that's completed, download the source from your favourite mirror.
Untar, configure and make (you know the drill):
tar xvzf tomcat-connectors-1.2.19-src.tar.gz cd tomcat-connectors-1.2.19-src/native ./configure --with-apxs=/usr/bin/apxs make
Since we don't have a /usr/libexec directory and the makefile built by configure fails due to this fact, we'll have to copy the files manually:
cp apache-1.3/mod_jk.so.0.0.0 /usr/lib/apache/1.3/mod_jk.so
Last but not least, paste the following text into /usr/lib/apache/1.3/500mod_jk.info
LoadModule: jk_module /usr/lib/apache/1.3/mod_jk.so Directives: JkMountCopy JkMount JkAutoMount JkWorkersFile JkLogFile JkLogLevel JkLogStampFormat JkAutoAlias JkRequestLogFormat JkExtractSSL JkHTTPSIndicator JkCERTSIndicator JkCIPHERIndicator JkSESSIONIndicator JkKEYSIZEIndicator JkOptions JkEnvVar Description: Tomcat connector for Java servlets and web applications
All thats left to do is to configure apache to actually load our newly built module. A quick guide on how to achieve that can be found here.
Sign up for our Newsletter