1.安装 apache 2,见前述。
2.下载
mod_jk-apache-2.0.55.so,拷到 apache2/modules目录下
(http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/)
3.apache2/conf 新建 workers.properties
# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
workers.tomcat_home = D:\server\Tomcat 5.0
workers.java_home = D:\devtools\java\j2sdk1.42
ps=\
worker.list=wlb
#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.wlb.type=ajp13
worker.wlb.host=localhost
worker.wlb.port=8009
worker.wlb.lbfactor=1
4.apache2/conf 修改 httpd.conf
加入
LoadModule jk_module modules/mod_jk-apache-2.0.55.so
JkWorkersFile "conf\workers.properties"
JkLogFile "logs\mod_jk2.log"
JkLogLevel info
jkMount /*.jsp wlb
jkMount / wlb
jkMount /PhoWebOffice/* wlb
5.重启 tomcat , apache
输入 localhost/index.jsp
输入 localhost/PhoWebOffice/