【总的文件夹网址】
https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/windows/
【适用于32位的apache2.2】
https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/windows/tomcat-connectors-1.2.40-windows-i386-httpd-2.2.x.zip
apache2.2.25可搭配mod_jk 1.2.40版本。
下载后将压缩包里面的mod_jk.so解压到C:\Program Files\Apache Software Foundation\Apache2.2\modules文件夹中。
conf/httpd.conf里面添加:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
JkRequestLogFormat "%w %V %T"
创建conf/workers.properties文件,内容如下:
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
tomcat的conf/server.xml里面去掉8009端口Connector节点的注释:
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
apache的<VirtualHost>节点里面添加:
JkMount /*.jsp worker1
重启tomcat和apache服务器,即可在apache service monitor的状态栏里面看到mod_jk/1.2.40的标识,如下图所示。
