HOWTO use JK1.2.15 to connect Tomcat5.5 and Apache2.2
*N.B.* This instruction use auto-generated mod_jk.conf by tomcat.When use shibboleth idp, please refer to
Prepare Tomcat/mod_jk for shibboleth idP 1.31. Set up Apache 2.2 ,Tomcat 5.5 and JK1.2.15 seperately, following the instructions in
http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html
a. install apache
b. install tomcat5.5
c.install mod_jk
a)download the src code of mod_jk1.2.15 from:
http://apache.rmplc.co.uk/tomcat/tomcat-connectors/jk/source/jk-1.2.15/jakarta-tomcat-connectors-1.2.15-src.tar.gz
b)cd jakarta-tomcat-connectors-1.2.15-src/jk/native
c)./buildconf.sh
d)./configure --with-apxs=/usr/local/apache/bin/apxs
e)make
f)make install
check apache2/modules, you should see mod_jk with 755 in this directory now.
2. In tomcat5/conf/server.xml, add:
before the line:
This enable the automatic generation of mod_jk.conf file by tomcat.
3. Add the following line to the end of apache2/conf/httpd.conf
Include /usr/share/tomcat/conf/auto/mod_jk.conf
This line tell Apache to use the mod_jk.conf generated by tomcat.
4.create a file workers.properties in tomcat5/conf/jk
add the following lines to the file,
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
5. Start Tomcat5 first, after the auto genereated file is ready, start apache2.