> http-response redirect code 302 location https://blabla if { status 404 }
> statement in my haproxy 1.5.15 config but on reload I get:

If i make proper sense of the documentation; the "http-response" does
not support "redirect" in 1.5.
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-http-response

But as you noted, the source-code contain the "redirect" in list of
expected options. I'm no coder, so i'm not sure i read the source
right, but it seems like the functions for "redirect" in
"http-response" are not available in 1.5.15 but the errormessage
contain it as a possibility, and it seem to be available in 1.6.

I suspect that this is a bug in 1.5 (either error message is wrong, or
the redirect-functions are not properly implemented).

/Björn

Reply via email to