官方教程: https://www.haproxy.com/blog/haproxy-ssl-termination/
准备工作:
先登录ssle.cn,订单详细里面,下载 PEM格式(单个PEM文件)
frontend www.mysite.com
bind 10.0.0.3:80
bind 10.0.0.3:443 ssl crt /etc/ssl/certs/mysite.pem ssl-min-ver TLSv1.0
http-request redirect scheme https unless { ssl_fc }
default_backend web_servers
backend web_servers
balance roundrobin
server server1 10.0.1.3:80 check maxconn 20 ssl
server server2 10.0.1.4:80 check maxconn 20 ssl
Was this helpful?
0 / 0