mod_jk notes

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.htmlhtml

相關文章
相關標籤/搜索