Apache + JK 怎么配置
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