Bug #11491
open
haproxy-devel v0.62_2 - startup error 'httpchk'
Added by A S almost 4 years ago.
Updated over 3 years ago.
Description
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.
Because now correct syntax is another:
https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#4.2-http-check%20connect
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.
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
- Tracker changed from Todo to Bug
- Status changed from New to Pull Request Review
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
PR has been merged. Thanks!
Also available in: Atom
PDF