【发布时间】:2016-04-11 17:58:04
【问题描述】:
我进行了以下 ha-proxy 配置,并在 HAProxy 重启时收到以下错误:
HAproxy 配置
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
option tcplog
option dontlognull
retries 3
timeout client 3h
timeout server 3h
timeout connect 5000
frontend fe_websockets
bind 0.0.0.0:443 ssl crt /home/test/Documents/test3.pem
mode tcp
log global
option tcplog
timeout client 3600s
backlog 4096
maxconn 50000
default_backend be_nywebsockets
backend be_nywebsockets
mode tcp
option log-health-checks
option redispatch
option tcplog
balance roundrobin
server web1 localhost:8443 check
# server web2 localhost:8081 check
timeout connect 1s
timeout queue 5s
timeout server 3600s
为什么 HAProxy 不允许将 443 绑定到某些服务器端口? 我遵循了以下链接中指定的配置: https://gist.github.com/allanparsons/6076098 [警报] 101/231920 (8356):启动前端 fe_websockets:无法绑定套接字 [0.0.0.0:443]
【问题讨论】:
标签: ssl websocket load-balancing haproxy