Windows下用tomcat-connectors集成tomcat和apache httpd
How to integrate apache httpd and tomcat server in windows using mod_jkhttp://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
ENV: httpd version 2.2 port 80tomcat version 6.0OS winxp 32 sp3
Apache httpd folder:C:\Program Files\Apache Software Foundation\Apache2.2
Tomcat folder: D:\Tool\apache-tomcat-6.0.10
JDK: Java SE 1.6.0_19
Steps:
1install httpd and tomcat server
2add below directives in httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile"C:\Program Files\Apache Software Foundation\Apache2.2\conf\workers.properties"
JkLogFile "C:\Program Files\Apache Software Foundation\Apache2.2\logs\mod_jk.log"
JkLogLevel error
JkMount /ilnba2 tomcat
JkMount /ilnba2/* tomcat
3download the right mod_jk.so from http://apache.freelamp.com/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/ put it into
C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk.so
4creat the workers.properties in conf folder as below
workers.tomcat_home=D:\Tool\apache-tomcat-6.0.10
workers.java_home=$JAVA_HOME
ps=/
worker.list=tomcat
worker.tomcat.port=8009 #check your tomcat server.xml, make sure the ajp13 port is 8009
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
5make sure there is an application named ilnba2 in your tomcat webapps folder
6start tomcat and apache server
7browe below url in your IE: http://localhost/ilnba2 to check whether the integration is OK now.
页:
[1]