标签:
1. include mod_jk configuration file
include "xxx/xx/mod_jk.conf"
2. mode_jk.conf(可以使用相对路径)
JkWorkersFile /usr/local/apache2/conf/workers.properties
JkWorkersFile conf/workers.properties
JkMountFile /usr/local/apache2/conf/uriworkermap.properties
JkMountFile conf/uriworkermap.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampformat "[%a %b %d %H:%M:%S %Y]"
3. JkMountFile文件与JkMount指令(混合使用)
可直接在httpd.conf中使用JkMount指令,而不使用JkMountFile,JkMount /epg/* loadbalance
或:JkMount /jkmanager jkstatus
4. uriworkermap.properties定义request从web server重定向到tomcat的映射规则,即URI request到workers.propertis文件中定义的worker
a. /myapp=myworker
b. /myapp|/*=myworker
c. /myapp|/*等价于/myapp + /myapp/*
d. !/myapp/static|/*=myworker
e. !*.html=myworker
f.
5. https://tomcat.apache.org/connectors-doc/reference/workers.html
标签:
原文地址:http://www.cnblogs.com/wangyinhui/p/4673027.html