找回密码
 立即注册

[SSL安装教程(服务器)] Haproxy 安装SSL

[复制链接]
发表于 2020-7-7 16:53:58 | 显示全部楼层 |阅读模式
苹果上架
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
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|一门开发者社区 ( 蜀ICP备17005078号-4 )

GMT+8, 2025-6-5 11:30 , Processed in 0.027236 second(s), 20 queries .

Powered by Discuz! X3.5

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表