我想在haproxy中使用相当于nginx的配置。看了很多链接,但没有一个提到与以下配置相关的东西。
proxy_http_version 1.1;
proxy_set_header Connection "";
你可以设置首选的 alpn 协议,并在服务器行和标头中加入 http-request set-header
# I would prefer to set this option instead of the header
option http-server-close
http-request set-header Connection "''"
server 127.0.0.1:443 ssl crt pub.pem alpn http/1.1
您也可以使用 选项http-server-close