Hi,
Looking at the source it seems implied there may be a way to set the
errorloc or errorloc303 destination string to include variables known to
HAProxy, rather than a static string.
In much the same way that one could set an HTTP request header using
certain variables like so:
http-request set-header X-DEBUG-HOST %host
I would like to use the %host value in errorloc
errorloc303 503 http://example.com/error?host=%host
In src/proto_http.c there is a check within http_parse_redirect_rule()
for "use_fmt" that mentions using log-formatted redirect strings, but I
don't see any mention of this behavior in the manual or example.
Is this expected to work, or is this a feature that's been either
abandoned or not yet implemented?
Many thanks,
-=Mark