1、mod_jk.conf文件拷贝到Tomcat 5.0conf下、修改1、2行路径
JkWorkersFile "C:Program FilesApache GroupApache2confworkers.properties"
JkLogFile "C:Program FilesApache Software FoundationTomcat 5.0logsmod_jk.log" JkLogLevel all
<VirtualHost * >
ServerName localhost
JkMount /servlet ajp13
JkMount /servlet/* ajp13
JkMount /esriadmin ajp13
JkMount /esriadmin/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13
</VirtualHost>
2、httpd.conf和workers.properties文件拷贝到Apache2conf下
3、修改workers.properties文件的worker.tomcat_home=和worker.java_home=路径
页面下方有这些内容
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.recycle_timeout=300
4、修改httpd.conf文件
ServerRoot "C:/Program Files/Apache Group/Apache2"
DirectoryIndex index.html index.html.var default.htm default.html
Include "C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/mod_jk.conf"
5、拷贝mod_jk.so到Apache2modules下
6、启动tomcat
7、启动APACHE
8、访问http://localhost:8080/servlets-examples/servlet/HelloWorldExample和
http://localhost/servlets-examples/servlet/HelloWorldExample如果结果一致,都是HELLO WORLD则说明APACHE与TOMCAT整合成功。