【发布时间】: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