如何配置 HAProxy 以整合出站应用程序服务器连接
我想使用我的 HAProxy 服务器来整合出站应用程序服务器请求。我的应用程序与第三方、外部服务交互,我希望能够使用单个 IP 地址与这些服务交互。我还希望能够通过 HTTP 和 HTTPS 来完成此操作。任何有关执行此操作的配置的示例将不胜感激。谢谢
I would like to use my HAProxy server to consolidate out bound application server requests. My application interacts with 3rd party, external services and I would like to be able to interact with these services using a single IP address. I would also like to be able to do this via HTTP and HTTPS. Any examples on the configuration to do this would be greatly appreciated. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用与 Web 服务器前面完全相同的设置,并在“服务器”声明中使用第 3 方的 IP。许多人这样做是为了联系第三方并强制连接和请求超时。它还允许您稍微监控服务,获取可用性统计信息。
You should use exactly the same setup as you have in front of your web servers, with the IP of your 3rd party in the "server" statement(s). Many people do that to reach third party and enforce a timeout on connection and requests. It also allows you to monitor the service a little bit, an get availability stats.