#for tomcat include "/usr/local/apache2/conf/mod_jk.conf"
[3]新建/usr/local/apache2/conf/mod_jk.conf,内容为
#Load mod_jk module LoadModule jk_module modules/mod_jk.so #Where to find workers.properties JkWorkersFile conf/workers.properties #Where to put jk logs JklogFile logs/mod_jk.log #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 for context /examples to worker named ajp13 #JkMount /servlet/* ajp13 #Send JSPs for context /examples to worker named ajp13 JkMount /*.jsp ajp13