First, install Apache, tomcat, and JDK. In turn, my versions are apache2.2.10, Tomcat 6.0.18, and jdk1.6.0 _ 05.
Locate httpd. conf and modify
<Ifmodule dir_module>
Directoryindex index.html index.htm index. jsp
</Ifmodule>
Add
Loadmodule jk_module modules/mod_jk.so
Jkworkersfile "F:/Apache-Tomcat-6.0.18/CONF/workers. properties"
Jkmount/servlet/* ajp13
Jkmount/*. jsp ajp13
Add <context Path = "" docbase = "F:/Web"/> (configure the main directory) to Tomcat server. xml)
Put workers. properties in the conf folder of Tomcat.
Put mod_jk.so under modules of Apache
The content of the workers. properties file is:
Workers. tomcat_home = "F:/Apache-Tomcat-6.0.18"
Workers. java_home = "C:/program files/Java/jdk1.6.0 _ 05"
PS =/
Worker. List = ajp13 (module version of mod_jk)
Worker. ajp13.port = 8009 (working port of mod_jk)
Worker. ajp13.host = localhost
Worker. ajp13.type = ajp13
Worker. ajp13.lbfactor = 1
Mod_jk.so:
Http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.26/
Find the version corresponding to your Apache. Here I select
Http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.26/mod_jk-1.2.26-httpd-2.2.4.so