Setting up Integration Between Apache HTTP Server and Apache Tomcat

Download and use the mod_jk.so connector to integrated Apache HTTP Server and Apache Tomcat.

Procedure

  1. From the Apache Tomcat Web site, download the mod_jk_VERSION connector file, where VERSION is the version number of the file.
  2. Save this file in the modules/ subdirectory of the Apache home directory as mod_jk.so.
  3. In the conf/ subdirectory of the Apache home directory, open httpd.config for editing and add the following entries.
    • LoadModule jk_module modules/mod_jk.so
    • JkMount /examples/* ajp13
    • JkMount /cw/* ajp13
    • JkMount /cw_ci/* ajp13
    • JkMount /cw_co/* ajp13
    • JkMount /cw_di/* ajp13
    • JkMount /cw_xml_ci/* ajp13
    • JkMount /cw_xml_co/* ajp13
    • JkMount /cw_tmp/* ajp13
    • JkMount /cw_common/* ajp13
    • AddDefaultCharset utf-8
  4. Save and close httpd.config.
  5. In the conf/ subdirectory of the Apache home directory, create a file called workers.properties with the following contents:
    # Definition for Ajp13 worker
    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13
  6. Restart Apache Tomcat and Apache HTTP server.