Return to Snippet

Revision: 23674
at February 11, 2010 05:04 by wumbrath


Initial Code
1. Install mod_jk

2. Enable module by adding to httpd.conf "LoadModule jk_module libexec/mod_jk.so"

3. Either add to the mod_jk.conf or to httpd.conf something like:
  <IfModule jk_module>
    JkShmFile var/JkShmFile
    JkWorkerProperty worker.list=ajp13w
    JkWorkerProperty worker.ajp13w.type=ajp13
    JkWorkerProperty worker.ajp13w.host=localhost
    JkWorkerProperty worker.ajp13w.port=8009

    JkMount /* ajp13w
    JkMount /<TOMCAT_HOSTED_WEBAPP> ajp13w
    JkMount /<TOMCAT_HOSTED_WEBAPP>/* ajp13w

    <IfDefine JK_DEFAULT_CONTEXT>
    JkMount /examples/* ajp13w
    JkMount /javadoc/* ajp13w
    JkMount /servlets/* ajp13w
    JkMount /jsp-examples/* ajp13w
    </IfDefine>
  </IfModule>

4. Make sure in your Tomcat server.xml is following entry (the port should match the one specified in step 3):
  <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

Initial URL


Initial Description


Initial Title
Apache Tomcat connect howto

Initial Tags
apache

Initial Language
Textpattern