3.在apache主配置文件的末尾加上一下内容
# set workers.properties of mod_jk
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(即tomcat)处理】
举一反三,别的后缀怎么配应该也知道了吧
重新启动apache,tomcat,至此整合初步结束,当然根据需要后续还有很多优化过程,慢慢来呦。
