apache和tomcat以mod_jk方式整合

2012年4月27日 发表评论 阅读评论

1、安装jdk,tomcat和apache
2、下载mod_jk.dll,改后缀so 将mod_jk.so放入C:Program FilesApache Software FoundationApache2.2modules
3、在C:Program FilesApache Software FoundationApache2.2conf下新增workers.properties文件,内容如下:

workers.tomcat_home=C:tomcat6
workers.java_home=C:Program FilesJavajdk1.6.0_10
ps=
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
 
4、在httpd.conf最后添加如下语句:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile "conf/workers.properties"
JkLogFile "logs/mod_jk2.log"
JkLogLevel info
ServerAdmin test@361way.com
DocumentRoot "D:htdocswpcms"
ServerName 361way.com
DirectoryIndex index.html
ErrorLog logs/wpcms-error.log
CustomLog logs/wpcms-access.log common
#JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /*.action ajp13
JkMount /*.html ajp13
JkMount /* ajp13
<Directory "D:htdoc">
Options Indexes
AllowOverride all
Order allow,deny
Allow from all
</Directory>



本站的发展离不开您的资助,金额随意,欢迎来赏!

分类: http/html/web 标签: , ,
  1. 本文目前尚无任何评论.