blovekyo 发表于 2017-1-12 09:11:20

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.soJkWorkersFile "conf\workers.properties"JkLogFile "mod_jk2.log"JkLogLevel debugJkMount /*.jsp worker1JkMount /jsp-examples/* worker1JkMount /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:
  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
页: [1]
查看完整版本: Setup connection between Tomcat5.5 and Apache HTTP server 2.2