开发者社区> 问答> 正文

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

展开
收起
montos 2020-06-02 12:24:03 328 0
1 条回答
写回答
取消 提交回答
  • 要看错误日志!

    ######

    "worker.DLOG4J.balanced_workers=s1, s2"

    只有两个做均衡呢?

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

    2020-06-02 12:24:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像