运行环境:ubuntu 12.04
软件:Apache tomcat
我想将Apache2与tomcat连接起来,于是下载了下载了连接模块mod_jk的源码
编译完已将相关文件放置到了该放的位置
worker.properties文件是这么写的
# Define 3 workers, 2 real workers using ajp12, ajp13, the last one being a loadbalancing worker worker.list=worker1 # Set properties for worker2 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=1 worker.worker1.connection_pool_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=60mod_jk.conf文件:
# Load mod_jk module
LoadModule jk_module libexec/mod_jk.so
# Declare the module for <IfModule directive> (remove this line on Apache 2.x)
AddModule mod_jk.c
# Where to find workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties
# Where to put jk shared memory
JkShmFile /var/log/httpd/mod_jk.shm
# Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send servlet for context /examples to worker named worker1
#JkMount /examples/servlet/* worker1
# Send JSPs for context /examples to worker named worker1
JkMount /* worker1 在/etc/apache2/httpd.conf加入了以下代码
Include /tomcatPath/mod_jk.conf
结果连接失败...求支招
Apache Tomcat
Apache