我正在尝试安装haproxy,以便将http请求路由到由websphere托pipe的servlet。
servlet有一个根上下文集合,以便:
wget [host]:[port]/[root context]
返回响应为
wget [host]:[port]
返回404
我如何configurationhaproxy,使代理定义如下:
listen MyProxy aaa.bbb.ccc.ddd:80 mode http ... server SERVER1 xxx.xxx.xxx.xx:8080 cookie SERVER_01 check ...
不会导致haproxy报告404服务器closures? 我看不到我可以指定根上下文的位置。
谢谢
您只需指定要使用“选项httpchk”进行检查的URL。 例如 :
option httpchk /index.html