一门APP开发教程

标题: Haproxy 安装SSL [打印本页]

作者: 希望工程boss    时间: 2020-7-7 16:53
标题: Haproxy 安装SSL
Haproxy 安装SSL
  1. frontend www.mysite.com
  2.     bind 10.0.0.3:80
  3.     bind 10.0.0.3:443 ssl crt /etc/ssl/certs/mysite.pem ssl-min-ver TLSv1.0
  4.     http-request redirect scheme https unless { ssl_fc }
  5.     default_backend web_servers

  6. backend web_servers
  7.     balance roundrobin
  8.     server server1 10.0.1.3:80 check maxconn 20 ssl
  9.     server server2 10.0.1.4:80 check maxconn 20 ssl
复制代码








欢迎光临 一门APP开发教程 (https://bbs.yimenapp.com/) Powered by Discuz! X3.4