Installing JK Connector on Fedora Core 3 with Tomcat 5.5.x and Apache 2.0.x

In order to build JK Connector on Fedora Core 3, httpd-devel package containing apxs must be installed.

First, download JK Connector sources from http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/

Next, go to jk/native directory and execute the following commands to build the connector:

1
2
3
./configure --with-apxs=/usr/sbin/apxs
make
su -c "make install"

Last, go to /etc/httpd/conf.d and create jk.conf file with the following example contents:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties.minimal
JkLogFile /opt/jakarta-tomcat-5.5.9/logs/mod_jk.log
JkLogLevel debug
Alias /blojsom /opt/jakarta-tomcat-5.5.9/webapps/blojsom
JkMount /blojsom/* ajp13w
<Location "/blojsom/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/blojsom/META-INF/">
AllowOverride None
deny from all
</Location>

You are done!

The last section of jk.conf defines the rules for blojsom web application and is written on per-application basis in this example.

Check out the log file (/opt/jakarta-tomcat-5.5.9/logs/mod_jk.log) to see whether you have any problems.