Setup connection between Tomcat5.5 and Apache HTTP server 2.2

1. Download tomcat 5.5 and Apache HTTP server 2.2 

2. Download JK.so and put it under {apache_http}/modules/

3. Edit "httpd.conf" and add the following content: 

LoadModule jk_module modules\mod_jk-1.2.31-httpd-2.2.3.so JkWorkersFile "conf\workers.properties" JkLogFile "mod_jk2.log" JkLogLevel debug JkMount /*.jsp worker1 JkMount /jsp-examples/* worker1 JkMount /servlets-examples/* worker1

Note: JkMount /servlets-examples/* worker1 ----> specifies the working app configured by Tomcat

4. Edit "workers.properties" file and put it under {apache_http}/conf/  . The content is showing below:

扫描二维码关注公众号,回复: 828739 查看本文章

workers.tomcat_home="E:\apache-tomcat-5.5.33"

workers.java_home="C:\Program Files\Java\jdk1.6.0_10"

ps=\

worker.list=worker1

worker.worker1.port=8009

worker.worker1.host=localhost

worker.worker1.type=ajp13

worker.worker1.lbfactor=1

5. start Tomcat and Apache HTTP.

http://localhost:80/index.jsp

猜你喜欢

转载自jimwallet.iteye.com/blog/1062044