haproxy - 带有 https 后端和 SNI 的 HAProxy
问题描述
请告诉我如何在端口 8443 上实现对后端服务器代理 https 的请求。我的配置不起作用。我收到错误 503。对 http 后端的请求成功。
frontend https_frontend
bind *:443 ssl crt /etc/haproxy/haproxyssl.pem
mode http
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Ssl on if { ssl_fc }
redirect scheme https if !{ ssl_fc }
use_backend bk_webserver if { ssl_fc_sni webserver.name.com }
backend bk_wscucu
server webserver.name.local 192.168.1.10:8443 check
解决方案
推荐阅读
- c# - 在始终加密的列值上使用 ToLower() 的 Linq 查询返回错误
- amazon-iam - 可以连接到 Code Commit SSH 但权限被拒绝 git clone
- c# - 获取服务主体对象的访问令牌的正确方法是什么?
- stata - 我正在尝试将写为 '11jun1965' 的出生年份转换为 Stata 中的年龄变量。使用以下代码,我无法生成当前年龄
- javascript - 将字符串更改为不同的字符串
- mongodb - 为什么我的 MongDB 无法访问数据?
- nginx - CentO 上的 Laravel 权限
- python - 如何使用 pytrends 获得谷歌趋势的平均输出?
- vue.js - 如果数据在分配给状态之前被修改,则绑定到数组的多个复选框会失去反应性
- sql - 如何通过词库在 SQL Server 中进行全文搜索得到想要的结果?