mod_jk:tomcat实现了ajp server side,而mod_jk实现了ajp client side
(1)在tomcat目录中找前缀为tomcat-connectors文件名的文件,编译并安装
tar -xzvf tomcat-connectors-1.2.30-src.tar.gz
cd tomcat-connectors-1.2.30-src
./configure --with-apxs=/usr/local/apache-test/bin/apxs
make
make install
(2)编辑httpd.conf
vi conf/httpd.conf
# Load mod_jk module
LoadModule jk_module /usr/local/apache-test/modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile /usr/local/apache-test/conf/workers.properties
# Where to put jk logs
JkLogFile /usr/local/apache-test/logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#