HAProxy Enterprise Documentation 2.4r1

Connection Parameters

Use the connect directive to enable SNI, connect over SSL/TLS, perform health checks over SOCKS4, and choose the protocol, such as HTTP/2 or FastCGI. Here's an example where health checks are performed using HTTP/2 and SSL:

backend be_myapp
   option httpchk
   http-check connect ssl alpn h2
   http-check send meth HEAD uri /health ver HTTP/2 hdr Host www.test.local
   server srv1 check

To close a connection cleanly instead of sending a RST, use the linger option.

For the complete list of parameters that can be specified on the connect line, see http-check connect.

Next up

Expected Status or String