1、将下载的mod_jk_2.0.52.dll 复制到D:/Service/Apache2/modules下
2、在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、配置apache的httpd.conf文件, 在最后加入
# Using mod_jk2.dll to redirect dynamic calls to 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
#虚拟主机,与tomcat中的Server.xml中设置相同, 指向相同的应用
<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、配置Tomcat5.0.2
修改D:\Tomcat 5.0.2\conf下Server.xml文件,配置一个虚拟主机:
<Host name="junling.wps.com" debug="0" appBase="E:\Projects\junling" unpackWARs="true" autoDeploy="true" />
4、重启Apache 及 Tomcat服务器
2、在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、配置apache的httpd.conf文件, 在最后加入
# Using mod_jk2.dll to redirect dynamic calls to 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
#虚拟主机,与tomcat中的Server.xml中设置相同, 指向相同的应用
<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、配置Tomcat5.0.2
修改D:\Tomcat 5.0.2\conf下Server.xml文件,配置一个虚拟主机:
<Host name="junling.wps.com" debug="0" appBase="E:\Projects\junling" unpackWARs="true" autoDeploy="true" />
4、重启Apache 及 Tomcat服务器