Tomcat8.5 + Apache + mod_jk load balancing and static and dynamic separation

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/QWERTY1994/article/details/84895274

1.mod_jk.conf

#是tomcat提供的、用来连接Apache与tomcat的一个插件,默认下载的tomcat中是没有的,需要单独下载。
#加载mod_jk Module
LoadModule jk_module modules/mod_jk.so

#指定workers.properties文件路径 
JkWorkersFile conf/workers.properties

#指定那些请求交给tomcat处理,"controller"为在workers.propertise里指定的负载分配控制器名
#JkMount /* controller
JkMount /hp/* controller
#指定哪些请求不走Tomcat
JkUnMount /hp/upload/* controller

# mod_jk共享内存文件在放位置,文件不需要自己创建
#JkShmFile     logs/httpd/mod_jk.shm
# mod_jk日志存放位置,文件不需要自己创建
#JkLogFile     logs/httpd/mod_jk.log
# mod_jk日志记录级别[debug/error/info]
#JkLogLevel    info

# 将/examples/开头的请示都转由tomcat1处理
#JkMount  /examples/* tomcat1


# URI映射文件,用来指定哪些URI由Tomcat处理
JkMountFile conf/uriworkermap.properties

 

Refer to the following article

https://www.cnblogs.com/zhaoqingqing/p/4969675.html

http://blog.51cto.com/ijeremy/1050047

https://blog.csdn.net/u011954243/article/details/56675379

https://www.cnblogs.com/piaoyang2087/p/5900456.html

https://blog.csdn.net/u011954243/article/details/56675379

https://blog.csdn.net/Yanci_/article/details/78468684

https://blog.csdn.net/azhegps/article/details/72695614

method and cluster apache tomcat load and cluster file synchronization and upload pictures show the problem is solved:
https://blog.csdn.net/maguanghui_2012/article/details/51648115

windows under a multi-server file synchronization tool cwRsync using the configuration tutorial
https://blog.csdn.net/ujm097/article/details/81475649


The latest apache has been integrated mo_jk
https://blog.csdn.net/ranxiaoqian/article/details/58594504

Guess you like

Origin blog.csdn.net/QWERTY1994/article/details/84895274