Actions
Bug #11000
openhaproxy deprecated trick suggested
Status:
New
Priority:
Very Low
Assignee:
-
Category:
haproxy
Target version:
-
Start date:
10/23/2020
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.5.x
Affected Plus Version:
Affected Architecture:
Description
haproxy-devel
under backend
the description for "Http check version" say:
Defaults to "HTTP/1.0" if left blank. Note that the Host field is mandatory in HTTP/1.1, and as a trick, it is possible to pass it after "\r\n" following the version string like this:
HTTP/1.1\r\nHost:\ www
but this lead to a Warning
[WARNING] 296/004428 (78254) : parsing [/var/etc/haproxy/haproxy.cfg:67]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.
Files
Updated by DRago_Angel [InV@DER] about 4 years ago
It was been deprecated from HAproxy 1.8 if trust manual: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html
New more clear syntax in docs mentions next example:
# Relay HTTPS traffic to Apache instance and check service availability
# using HTTP request "OPTIONS * HTTP/1.1" on port 80.
backend https_relay
mode tcp
option httpchk OPTIONS * HTTP/1.1
http-check send hdr Host www
server apache1 192.168.1.1:443 check port 80
Actions