From: Jim Jagielski Date: Fri, 22 Jan 2016 15:42:52 +0000 (+0000) Subject: xforms X-Git-Tag: 2.5.0-alpha~2308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=101bc3d7b28cb632bce560de08349e4edcf477f3;p=apache xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726239 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/expr.html.en b/docs/manual/expr.html.en index 27a100591c..418316a81c 100644 --- a/docs/manual/expr.html.en +++ b/docs/manual/expr.html.en @@ -238,26 +238,29 @@ listfunction ::= listfuncname "(" word ")"HANDLER The name of the handler creating the response -HTTPS +HTTP2 + "on" if the request uses http/2, + "off" otherwise +HTTPS "on" if the request uses https, "off" otherwise -IPV6 +IPV6 "on" if the connection uses IPv6, "off" otherwise -REQUEST_STATUS +REQUEST_STATUS The HTTP error status of the request (not available during <If>) -REQUEST_LOG_ID +REQUEST_LOG_ID The error log id of the request (see ErrorLogFormat) -CONN_LOG_ID +CONN_LOG_ID The error log id of the connection (see ErrorLogFormat) -CONN_REMOTE_ADDR +CONN_REMOTE_ADDR The peer IP address of the connection (see the mod_remoteip module) -CONTEXT_PREFIX +CONTEXT_PREFIX -CONTEXT_DOCUMENT_ROOT +CONTEXT_DOCUMENT_ROOT diff --git a/docs/manual/expr.xml.fr b/docs/manual/expr.xml.fr index e8a6ec7a99..919c6460cb 100644 --- a/docs/manual/expr.xml.fr +++ b/docs/manual/expr.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/mod/mod_proxy_hcheck.html.en b/docs/manual/mod/mod_proxy_hcheck.html.en index 7431cbbe0f..97cd58fb41 100644 --- a/docs/manual/mod/mod_proxy_hcheck.html.en +++ b/docs/manual/mod/mod_proxy_hcheck.html.en @@ -90,7 +90,10 @@ -

Directives

+

Topics

+

Directives

+
top
+
+

Usage examples

+ + +

The following example shows how one might configured health checking + for various backend servers:

+ + +
ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
+ProxyHCExpr gdown %{REQUEST_STATUS} =~ /^[5]/}
+ProxyHCExpr in_maint {hc('body') !~ /Under maintenance/}
+
+<Proxy balancer://foo>
+  BalancerMember http://www.example.com/  hcmethod=GET hcexpr=in_maint hcuri=/status.php
+  BalancerMember http://www2.example.com/  hcmethod=HEAD hcexpr=ok234 hcinterval=10
+  BalancerMember http://www3.example.com/ hcmethod=TCP hcinterval=5
+  BalancerMember http://www4.example.com/
+</Proxy>
+
+ProxyPass "/" "balancer://foo"
+ProxyPassReverse "/" "balancer://foo"
+ +

In this scenario, http://www.example.com/ is health checked by sending a GET /status.php +request to that server and seeing that the returned page does not include the string Under maintenance. If +it does, that server is put in health-check fail mode, and disabled. This dynamic check is performed +every 30 seconds, which is the default.

+ +

http://www2.example.com/ is checked by sending a simple HEAD request every +10 seconds and making sure that the response status is 2xx, 3xx or 4xx. http://www3.example.com/ is checked +every 5 seconds by simply ensuring that the socket to that server is up and http://www4.example.com/ is +not dynamically checked at all.

+ +
top