具有多个https站点的HAproxy [英] HAproxy with multiple https sites

查看:261
本文介绍了具有多个https站点的HAproxy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个http站点在负载均衡器后面运行(具有使用hearbeat的故障转移功能)和一个https站点。一切都运行正常,但现在我想
添加另一个https网站。我找不到任何托管多个https网站的参考资料。

We have couple of http sites running behind load balancer ( with failover capability using hearbeat) and one https site. Everything is running fine but now i want to add another https site. I couldn't find any references for hosting multiple https sites.

有没有人使用HAproxy托管多个https网站?你能告诉我怎样才能实现这个目标?请帮助我输入。

Has anyone hosted multiple https sites using HAproxy ? Can you please tell me how can i achieve this ? pls help me with your inputs.

谢谢,

Santhosh

推荐答案

HAProxy本身不支持SSL,你必须在前面运行SSL unwrapped。热门选项包括stunnel和专栏。对于HTTP,您也可以使用Apache或Nginx。

HAProxy itself doesn't support SSL, you have to run an "SSL unwrapped" in front. Popular options are stunnel and stud. For HTTP you can also use Apache or Nginx.

更新:自从我写了答案以来,haproxy已添加ssl作为新功能。我在 https://manage.ntppool.org/ 上使用它,它运行良好。您需要最新的1.5开发版本(如果您在阅读本文时已经发布,则为1.6)。

Update: Since I wrote that answer haproxy has added ssl as a new feature. I use it on https://manage.ntppool.org/ and it's working nicely. You need the latest 1.5 development release (or 1.6 if that's out by the time you read this).

这篇关于具有多个https站点的HAproxy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆