Apache + JK 如何配置?

拉轰的萝卜 发布于 2011/03/19 14:58
阅读 783
收藏 1

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

加载中
0
红薯
红薯

要看错误日志!

0
h
huangmoyuan

"worker.DLOG4J.balanced_workers=s1, s2"

只有两个做均衡呢?

“worker.DLOG4J.balanced_workers=s1, s2,s3”

返回顶部
顶部