From: Jim Jagielski Date: Thu, 21 Jan 2016 21:30:00 +0000 (+0000) Subject: xforms X-Git-Tag: 2.5.0-alpha~2313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8004364f7b134fd22d84aa46147bbd826335142;p=thirdparty%2Fapache%2Fhttpd.git xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726104 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/env.xml.fr b/docs/manual/env.xml.fr index 0286162fcd5..39c450d6a0b 100644 --- a/docs/manual/env.xml.fr +++ b/docs/manual/env.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/env.xml.ja b/docs/manual/env.xml.ja index d6a0351d587..656077c89c6 100644 --- a/docs/manual/env.xml.ja +++ b/docs/manual/env.xml.ja @@ -1,7 +1,7 @@ - + + + + diff --git a/docs/manual/expr.xml.meta b/docs/manual/expr.xml.meta index ea324a8bb25..086629a7ff2 100644 --- a/docs/manual/expr.xml.meta +++ b/docs/manual/expr.xml.meta @@ -7,6 +7,7 @@ . + edited en fr diff --git a/docs/manual/mod/mod_proxy_hcheck.html.en b/docs/manual/mod/mod_proxy_hcheck.html.en index e546f94579c..7431cbbe0fa 100644 --- a/docs/manual/mod/mod_proxy_hcheck.html.en +++ b/docs/manual/mod/mod_proxy_hcheck.html.en @@ -61,6 +61,7 @@ TCPCheck that a socket to the backend can be created: e.g. "are you up" OPTIONSSend an HTTP OPTIONS request to the backend* HEADSend an HTTP HEAD request to the backend* + GETSend an HTTP GET request to the backend *: Unless hcexpr is used, a 2xx or 3xx HTTP status will be interpreted as passing the health check @@ -118,7 +119,21 @@ ProxyPass "/apps" "http://backend.example.com/" hcexpr=ok234 -

NOTE: The expression can use curly-parens ("{}") as quoting deliminators in addition to normal quotes.

+

NOTE: The expression can use curly-parens ("{}") as quoting deliminators in addition to normal quotes.

+ +

If using a health check method (eg: GET) which results in a response + body, that body itself can be checked via ap_expr using the hc() + expression function, which is unique to this module.

+ +

In the following example, we send the backend a GET request + and if the response body contains the phrase Under maintenance, + we want to disable the backend.

+ +

ProxyHCExpr: Checking response body

ProxyHCExpr in_maint {hc('body') !~ /Under maintenance/}
+ProxyPass "/apps"     "http://backend.example.com/" hcexpr=in_maint hcmethod=get hcuri=/status.php
+
+ +

NOTE: Since response body can quite large, it is best if used against specific status pages.

top