请告诉我如何在端口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