![Haproxy 2 域名 ssl crt 冲突](https://linux22.com/image/784474/Haproxy%202%20%E5%9F%9F%E5%90%8D%20ssl%20crt%20%E5%86%B2%E7%AA%81.png)
Haproxy 负载均衡器 - 我配置了 2 个不同的域 SSL 证书并发生冲突。例如,我有两个域 api.xxx.com 和 api.yyy.com。如果尝试获取 api.xxx.com,则在刷新后显示 yyy 证书不安全,xxx crt 显示,yyy 域显示不安全。
这是配置 -
global
maxconn 2000000
tune.ssl.cachesize 1000000
listen stats 10.0.1.151:8080
mode http
log global
stats enable
stats realm Haproxy\ Statistics
stats uri /
stats hide-version
frontend rserve_frontend
maxconn 2000000
bind 10.0.1.144:80 transparent
bind 10.0.1.144:443 transparent ssl crt /etc/ssl/haproxy/api.xxxx.pem /etc/ssl/haproxy/api.yyy.pem
mode tcp
option tcplog
timeout client 10m
default_backend rserve_backend
backend rserve_backend
mode tcp
maxconn 2000000
option tcplog
option log-health-checks
option redispatch
log global
balance roundrobin
timeout connect 5000
timeout server 5000
timeout client 50000
source 0.0.0.0 usesrc clientip
server rserve1 10.0.1.189:7000 check
server rserve2 10.0.1.190:7000 check
server rserve3 10.0.1.191:7000 check