Apache 2.0.59
JDK 1.5.0
Mod_jk-apache-2.0.58.so
Step 1: install Apache 2.0.59
Add the following lines to httpd. conf:
Loadmodule jk_module modules/mod_jk-apache-2.0.58.so
Jkworkersfile "C:/Java/tomcat 5.5/CONF/workers. properties" // location of the properties File
Jklogfile "C:/Java/tomcat 5.5/logs/mod_jk2.log" // location of the log file
Jkloglevel info
Add a virtualhost to the end
<Virtualhost *: 80>
Serveradmin localhost
DocumentRoot "C:/Java/tomcat 5.5/webapps/yyx"
# The path of your site project should be the same as the directory settings in Tomcat
Servername localhost
Directoryindex index.html index.htm index. jsp
Errorlog logs/shsc-error_log.txt
Customlog logs/shsc-access_log.txt common
# Jkmount/servlet/* ajp13
# Apache supports servlet transfer for Tomcat Parsing
# Jkmount/*. jsp ajp13
# Apache supports JSP transmission for Tomcat Parsing
# Jkmount/*. Do ajp13
# Apache supports. Do transmission for Tomcat Parsing
Jkmount/* ajp13
# Jkmount/*. * ajp13
</Virtualhost>
C:/Java/tomcat 5.5/CONF/workers. properties can be used by default.
You can see the same content through http: // ip or http: // ip: 8080.