nginx配置到haproxy。

问题描述 投票:0回答:1

我想在haproxy中使用相当于nginx的配置。看了很多链接,但没有一个提到与以下配置相关的东西。

proxy_http_version 1.1;
proxy_set_header Connection "";
nginx reverse-proxy haproxy http-1.1
1个回答
0
投票

你可以设置首选的 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

© www.soinside.com 2019 - 2024. All rights reserved.