My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Saturday, April 15, 2006

     
    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.3

    1. 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.

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?