On Sun, Jan 31, 2016 at 08:30:57AM +0100, Björn Zettergren wrote:
> > 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).

We implemented it very late in 1.6, I'm surprized that the keyword is
listed in 1.5. Let me check...

OK I found it, it was accidently added in 1.5-dev19 when http-response
was introduced :  e365c0b ("MEDIUM: http: add a new "http-response" ruleset")

This one needs to be removed from the error message.

Thanks,
Willy


Reply via email to