APACHE 2.2.4与TOMCAT6.0.2整合

APACHE-tomcat连接器:mod_jk-apache-2.2.4.so
http://www.hightechimpact.com/Apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.23/mod_jk-apache-2.2.4.so

mod_jk-apache-2.2.4.so复制到APACHE安装目录下的modules目录


新建一个conf/extra/workers.properties文件


workers.tomcat_home=”D:\Tomcat6″
workers.java_home=”D:\jdk1.6″
ps=\
wk.list=ajp13
wk.ajp13.port=8009
wk.ajp13.host=localhost
wk.ajp13.type=ajp13
wk.ajp13.lbfactor=50
wk.ajp13.cachesize=10
wk.ajp13.cache_timeout=600
wk.ajp13.socket_keepalive=1
wk.ajp13.socket_timeout=300


修改httpd.conf

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/extra/workers.properties   #此行代码必须放在httpd.conf, 放在virtulhost.conf会出错
JkLogLevel error
JkLogFile logs/mod_jk.log

虚拟机中添加

<VirtualHost *:80>


JkOptions  +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     “%w %V %T”
JkMount  /*/servlet/* ajp13
JkMount  /*.jsp ajp13
JkMount  /*.do ajp13


</VirtualHost>


Tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *