【问题标题】:HAProxy load balancing with tomcat SSL使用 tomcat SSL 的 HAProxy 负载平衡
【发布时间】:2013-12-30 16:18:44
【问题描述】:

我有 2 个带有 SSL 的 tomcat7 实例(在 2 个单独的虚拟机上),我想使用 haproxy 作为它们的负载平衡器。 我不确定如何执行此操作,但我尝试使用 open ssl 安装 haproxy 1.5(并使用 USE_OPENSSL=yes 编译)并使用与此处类似的配置:http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/

frontend https_frontend  
  bind *:443 ssl crt /etc/haproxy/keystore
  mode http
  option httpclose
  option forwardfor
  reqadd X-Forwarded-Proto:\ https
  default_backend web_server

backend web_server
  mode http
  balance roundrobin
  cookie SERVERID insert indirect nocache
  server s1 vm1:8443 check cookie s1
  server s2 vm2:8443  check cookie s2

启动 haproxy 时出现以下错误:

'bind' only supports the 'transparent', 'defer-accept', 'name', 'id', 'mss' and 'interface' options.

有人有什么建议/想法吗? 谢谢! :)

【问题讨论】:

    标签: tomcat ssl openssl haproxy


    【解决方案1】:

    您尚未编译支持 SSL 的 HAProxy。 请在构建 HAProxy 时添加 USE_OPENSSL=1。请注意,它需要安装 libssl-dev 包。

    巴蒂斯特

    【讨论】:

      猜你喜欢
      • 2017-04-12
      • 1970-01-01
      • 1970-01-01
      • 2016-12-25
      • 2016-08-20
      • 1970-01-01
      • 2011-04-21
      • 1970-01-01
      • 2013-10-23
      相关资源
      最近更新 更多