Today, I used to integrate Tomcat Apache today. The specific process is as follows: 1. Install jakarta-tomcat-5.0.14.exe, my installation directory is D: / Tomcat 5.02. Install Apache_2.0.50-Win32-x86 -no_ssl.exe, my installation directory is D: / program files / apache group / apache23. Download Jakarta-Tomcat-Connectors-jk2.0.4-win32-apache2.0.49.zip package and decompress, MOD_JK2 below. SO file, copy to d: / program files / apache group / apache2 / modules directory. 4. In the Apache installation directory conf / httpd.conf Add to LoadModule JK2_Module "Modules / Mod_jk2.so" jkset config.file "conf / workers2 .properties "5. Create a workers2.properties file under the confache installation directory, write the following configuration: [shm] info = scoreboard. Requied for reconfiguration and status with multiple multiprocess servers.file = C: / apache / apache2 /LOGS/JK2.SHMSIZE = 1048576
# Defines a load balancer named lb. Use even if you only have one machine. [Lb: lb]
# Example Socket Channel, Override Port and host. [Channel. Socket: localhost: 8009] Port = 8009Host = localhost
# Define the worker [AJP13: localhost: 8009] channel: localhost: 8009Group = lb
# Map the Tomcat Examples WebApp To The Web Server Uri Space [URI: / JSP-EXAMPLES / *] Group = lb [URI: / BBS / *] Group = lb [status:] info = status worker, displays runtime information
[URI: / jkstatus / *] info = the tomcat / jkstatus handlergroup = status:
[URI: / *. JSP] worker = ajp13: localhost: 80096. Starting apache, access http: // localhost appears Apache Welcome page, indicating that Apache is successfully installed, access http: // localhost / jkstatus appears JK status information Description Apache And JK integration, start Tomcat, visit http: // localhost: 8090 / appearance Tomcat Welcome page Description Tomcat runs normally, at this time, visit http: // localhost / bbs /, the result is and http: // localhost: 8090 / bbs / The same, describing Tomcat and Apache successfully integrated.