1. Copy the downloaded mod_jk_2.0.52.dll to D:/service/apache2/modules.
2. Create a file under D:/service/apache2/CONF/, workers. Properties
#
# Workers. Properties
PS =/
# List the workers by name
Worker. List = ajp13
Worker. ajp13.port = 8009
Worker. ajp13.host = localhost
Worker. ajp13.type = ajp13
Worker. ajp13.lbfactor = 1
2. Configure the httpd. conf file of Apache and add
# Using mod_jk2.dll to redirect dynamic callto Tomcat
Loadmodule jk_module modules/mod_jk_2.0.52.dll
Jkworkersfile "D:/service/apache2/CONF/workers. properties"
Jklogfile logs/mod_jk2.log
Jkmount/servlet/* ajp13
Jkmount/*. jsp ajp13
Jkmount/*. Do ajp13
# Vm, Which is set the same as server. XML in Tomcat and points to the same application
<Virtualhost commnet.wps.com>
Serveradmin admin@cld.cn
DocumentRoot E:/projects/junling/root
Servername junling.wps.com
Directoryindex index.html index.htm index. jsp
Errorlog logs/shsc-error_log.txt
Customlog logs/shsc-access_log.txt common
</Virtualhost>
3. Configure Tomcat 5.0.2
Modify the server. xml file under D: \ Tomcat 5.0.2 \ conf and configure a VM:
<Host name = "junling.wps.com" DEBUG = "0" appbase = "E: \ projects \ junling" unpackwars = "true" autodeploy = "true"/>
4. Restart Apache and tomcat servers