MINOR: checks: Support log-format string to set the URI for HTTP send rules
For http-check send rules, it is now possible to use a log-format string to set
the request URI. the keyword "uri-lf" should be used instead of "uri". If the
string eval fails, we fall back on the default uri "/".
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 80aa83f..da5d05e 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -4681,8 +4681,8 @@
and "http-check send".
-http-check send [meth <method>] [uri <uri>] [ver <version>] [comment <msg>]
- [hdr <name> <fmt>]* [body <string>]
+http-check send [meth <method>] [{ uri <uri> | uri-lf <fmt> }>] [ver <version>]
+ [hdr <name> <fmt>]* [body <string>] [comment <msg>]
Add a possible list of headers and/or a body to the request sent during HTTP
health checks.
May be used in sections : defaults | frontend | listen | backend
@@ -4696,10 +4696,15 @@
logs. Any method may be used, though it is not recommended
to invent non-standard ones.
- uri <uri> is optional and set the URI referenced in the HTTP requests.
- it defaults to " / " which is accessible by default on almost
- any server, but may be changed to any other URI. Query
- strings are permitted.
+ uri <uri> is optional and set the URI referenced in the HTTP requests
+ to the string <uri>. It defaults to "/" which is accessible
+ by default on almost any server, but may be changed to any
+ other URI. Query strings are permitted.
+
+ uri-lf <fmt> is optional and set the URI referenced in the HTTP requests
+ using the log-format string <fmt>. It defaults to "/" which
+ is accessible by default on almost any server, but may be
+ changed to any other URI. Query strings are permitted.
ver <version> is the optional HTTP version string. It defaults to
"HTTP/1.0" but some servers might behave incorrectly in HTTP