apache和tomcat以mod_jk方式整合
1、安装jdk,tomcat和apache
2、下载mod_jk.dll,改后缀so 将mod_jk.so放入C:Program FilesApache Software FoundationApache2.2modules
3、 在C:\Program Files\Apache Software Foundation\Apache2.2\conf下新增workers.properties文件,内容如下:
1workers.tomcat_home=C:tomcat6
2workers.java_home=C:Program FilesJavajdk1.6.0_10
3ps=
4worker.list=ajp13
5worker.ajp13.port=8009
6worker.ajp13.host=localhost
7worker.ajp13.type=ajp13
8worker.ajp13.lbfactor=1
4、在httpd.conf最后添加如下语句:
1LoadModule jk_module modules/mod_jk.so
2JkWorkersFile "conf/workers.properties"
3JkLogFile "logs/mod_jk2.log"
4JkLogLevel info
5ServerAdmin [email protected]
6DocumentRoot "D:htdocswpcms"
7ServerName 361way.com
8DirectoryIndex index.html
9ErrorLog logs/wpcms-error.log
10CustomLog logs/wpcms-access.log common
11#JkMount /servlet/* ajp13
12JkMount /*.jsp ajp13
13JkMount /*.do ajp13
14JkMount /*.action ajp13
15JkMount /*.html ajp13
16JkMount /* ajp13
17<directory>
18Options Indexes
19AllowOverride all
20Order allow,deny
21Allow from all
22</directory>
捐赠本站(Donate)
如您感觉文章有用,可扫码捐赠本站!(If the article useful, you can scan the QR code to donate))
- Author: shisekong
- Link: https://blog.361way.com/apache-tomcat-2/1216.html
- License: This work is under a 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work.