【问题标题】:Right configure hproxy.cfg on OpenShift service在 OpenShift 服务上正确配置 hproxy.cfg
【发布时间】:2014-03-20 04:20:15
【问题描述】:

现在,我已经在 OpenShift 上的 Tomcat 7 设备上部署了我的 Web 应用程序 TomographySoftwareWebSite.war。基本上当我试图 我的网址应用程序

http://tomography-antonov.rhcloud.com/

我有 503 没有服务器可以处理这个请求。然后我稍微改变了我的 hproxy.cfg 文件。并改变这个

listen stats 127.11.87.3:8080
mode http
stats enable
stats uri /

听快递 127.11.87.2:8080

cookie GEAR insert indirect nocache
option httpchk GET /

balance leastconn
server local-gear 127.11.87.1:8080 check fall 2 rise 3 inter 2000 cookie local-5328ac845973cacd8500016d

收听统计 127.11.87.3:8080 模式http 统计启用 统计 uri /

听快递 127.11.87.2:8080

cookie GEAR insert indirect nocache
option httpchk GET /TomographySoftwareWebSite

balance leastconn
server local-gear 127.11.87.1:8080 check fall 2 rise 3 inter 2000 cookie local-5328ac845973cacd8500016d

然后我的应用程序开始工作

http://tomography-antonov.rhcloud.com/TomographySoftwareWebSite/

我应该如何更改配置才能开始使用?

http://tomography-antonov.rhcloud.com/

谢谢

【问题讨论】:

    标签: java tomcat openshift


    【解决方案1】:

    您需要将您的应用程序部署到根上下文(将您的战争文件重命名为 ROOT.war),

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-26
      • 2017-08-02
      • 2020-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-27
      相关资源
      最近更新 更多