I want equivalent of nginx config in haproxy. Went through lot of links but none of them mentioned anything related to below configs.
proxy_http_version 1.1;
proxy_set_header Connection "";
I want equivalent of nginx config in haproxy. Went through lot of links but none of them mentioned anything related to below configs.
proxy_http_version 1.1;
proxy_set_header Connection "";
You can set the preferred alpn protocol on the server line and the header with 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
You can also use option http-server-close
503 Service Unavailable
No server is available to handle this request. * Closing connection 0`