Download and use the mod_jk.so connector to integrated Apache HTTP Server and Apache Tomcat.
Procedure
- From the Apache Tomcat Web site, download the mod_jk_VERSION connector file, where VERSION is the version number of the file.
- Save this file in the modules/ subdirectory of the Apache home directory as mod_jk.so.
- 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
- Save and close httpd.config.
- 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
- Restart Apache Tomcat and Apache HTTP server.