【发布时间】:2021-10-14 09:12:37
【问题描述】:
我需要将 ADFS 与 HAPROXY 一起使用。
目前我唯一的问题是我无法从https://adfsstg.xxx.com 重定向到https://adfsstg.xxx.com/adfs/ls/IdpInitiatedSignOn.aspx
这是我的前端:
frontend adfsstg
bind 10.129.10.3:443 ssl crt /etc/ssl/certs/wildcard.pem
mode http
redirect scheme https if !{ ssl_fc }
acl is_root path -i /
redirect code 301 location adfsstg.xxx.com/adfs/ls/IdpInitiatedSignOn.aspx if is_root
use_backend adfsstg
这是我的后端:
backend adfsstg
balance roundrobin
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
mode http
http-request deny if !{ src -f /etc/haproxy/allowedoffices.acl }
server adfsstg.xxx.com 10.129.9.144:443 check ssl verify none
你能帮帮我吗? 非常感谢
【问题讨论】: