haproxy-devel v0.62_2 - startup error 'httpchk'
Seeing this error message upon startup (under 2.5.0):
haproxy: startup error output!: [WARNING] 051/015053 (57019) : parsing [/var/etc/haproxy/haproxy.cfg:100]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.
Updated by DRago_Angel [InV@DER] about 2 years ago
Because now correct syntax is another:
Now one backend can have more then one healtcheck and their types can be different and syntax now:
# check HTTP and HTTPs services on a server. # first open port 80 thanks to server line port directive, then # tcp-check opens port 443, ciphered and run a request on it: option httpchk http-check connect http-check send meth GET uri / ver HTTP/1.1 hdr host haproxy.1wt.eu http-check expect status 200-399 http-check connect port 443 ssl sni haproxy.1wt.eu http-check send meth GET uri / ver HTTP/1.1 hdr host haproxy.1wt.eu http-check expect status 200-399 server www 10.0.0.1 check port 80
I wrote in my ticket https://redmine.pfsense.org/issues/10739 that HAproxy 2.2 has changes in heatchecks that need to be aligned with pfSense plugin.
Updated by DRago_Angel [InV@DER] almost 2 years ago
More over now HAproxy 2.0 support alpn h2 on backend and from 2.2 it supported on http-check. Also default server param would be cool to not copy paste all customization between 2-5 webservers
Updated by Viktor Gurov almost 2 years ago
- Tracker changed from Todo to Bug
Updated by Jim Pingle almost 2 years ago
- Status changed from New to Pull Request Review
Updated by Renato Botelho almost 2 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
PR has been merged. Thanks!