Apache + JK 怎么配置
时间:2011-03-19
来源:互联网
DLOG4J 已经正常工作了,而 S3却不行。要怎么弄才可以访问这种呢?
http://localhost/test/xxxxxx/xxxx
http://localhost/test
我的 Apache 配置是这样的:
#
# workers.properties
#
# list the workers by name
worker.list=DLOG4J, status, s3
# localhost server 1
# ------------------------
worker.s1.port=8009
worker.s1.host=localhost
worker.s1.type=ajp13
#worker.s1.lbfactor=2.5
worker.s1.cachesize=10
worker "s1" want ajp13 connection to be dropped after 5mn (timeout)
worker.s1.cache_timeout=600
worker.s1.socket_keepalive=1
worker.s1.socket_timeout=300
# localhost server 2
# ------------------------
worker.s2.port=8109
worker.s2.host=localhost
worker.s2.type=ajp13
worker.s2.cachesize=10
worker.s2.cache_timeout=600
worker.s2.socket_keepalive=1
worker.s2.socket_timeout=300
# local host server 3
worker.s3.port=8309
worker.s3.host=localhost
worker.s3.type=ajp13
worker.s3.cachesize=10
worker.s3.cache_timeout==600
worker.s3.socket_keepalive=1
worker.s3.socket_timeout=300
worker.DLOG4J.type=lb
worker.retries=3
worker.DLOG4J.balanced_workers=s1, s2
worker.DLOG4J.sticky_session=1
worker.status.type=status
=======================================
/*=DLOG4J
/jkstatus=status
/test=s3
/test/*=s3
#!/*.gif=DLOG4J
#!/*.jpg=DLOG4J
#!/*.png=DLOG4J
#!/*.css=DLOG4J
#!/*.js=DLOG4J
#!/*.htm=DLOG4J
#!/*.html=DLOG4J
http://localhost/test/xxxxxx/xxxx
http://localhost/test
我的 Apache 配置是这样的:
#
# workers.properties
#
# list the workers by name
worker.list=DLOG4J, status, s3
# localhost server 1
# ------------------------
worker.s1.port=8009
worker.s1.host=localhost
worker.s1.type=ajp13
#worker.s1.lbfactor=2.5
worker.s1.cachesize=10
worker "s1" want ajp13 connection to be dropped after 5mn (timeout)
worker.s1.cache_timeout=600
worker.s1.socket_keepalive=1
worker.s1.socket_timeout=300
# localhost server 2
# ------------------------
worker.s2.port=8109
worker.s2.host=localhost
worker.s2.type=ajp13
worker.s2.cachesize=10
worker.s2.cache_timeout=600
worker.s2.socket_keepalive=1
worker.s2.socket_timeout=300
# local host server 3
worker.s3.port=8309
worker.s3.host=localhost
worker.s3.type=ajp13
worker.s3.cachesize=10
worker.s3.cache_timeout==600
worker.s3.socket_keepalive=1
worker.s3.socket_timeout=300
worker.DLOG4J.type=lb
worker.retries=3
worker.DLOG4J.balanced_workers=s1, s2
worker.DLOG4J.sticky_session=1
worker.status.type=status
=======================================
/*=DLOG4J
/jkstatus=status
/test=s3
/test/*=s3
#!/*.gif=DLOG4J
#!/*.jpg=DLOG4J
#!/*.png=DLOG4J
#!/*.css=DLOG4J
#!/*.js=DLOG4J
#!/*.htm=DLOG4J
#!/*.html=DLOG4J
作者: sanqiershiyi 发布时间: 2011-03-19
哥出来买盐的,顶起!~!~
作者: cawway 发布时间: 2011-03-19
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28