在apache主配置文件的末尾加上一下内容
JkWorkersFile
/etc/apache2/workers.properties(workers.properties目录)
# Where to put jk
logs
JkLogFile /var/log/apache2/mod_jk.log(jk日志)
# having the
permissions to write the runtime status log
JkShmFile
/var/log/apache2/jk-runtime-status
# Set the jk log level
[debug/error/info]
JkLogLevel info
# Select the log
format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"(日志生成格式)
#
JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize
+ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the
request format
JkRequestLogFormat "%w %V %T"
# send servlet and
jsp requests to tomcat with ajp13 protocol
JkMount /*.jsp worker1
#表示把所有后缀为jsp的文件都交给worker1