From 350debd9f321d468eff5c58a1c53c69694ed69d8 Mon Sep 17 00:00:00 2001
From: Jean-Frederic Clere
Date: Tue, 12 Dec 2017 12:36:25 +0000
Subject: [PATCH] Arrange the examples: use a balancer member.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1817908 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_proxy_hcheck.html.en | 18 +++++++++++++++---
docs/manual/mod/mod_proxy_hcheck.xml | 18 +++++++++++++++---
2 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/docs/manual/mod/mod_proxy_hcheck.html.en b/docs/manual/mod/mod_proxy_hcheck.html.en
index 525103291c..67970deb09 100644
--- a/docs/manual/mod/mod_proxy_hcheck.html.en
+++ b/docs/manual/mod/mod_proxy_hcheck.html.en
@@ -163,7 +163,11 @@ not dynamically checked at all.
parameter
ProxyHCExpr: Allow for 2xx/3xx/4xx as passing
ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
-ProxyPass "/apps" "http://backend.example.com/" hcexpr=ok234
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www2.example.com/ hcmethod=HEAD hcexpr=ok234 hcinterval=10
+</Proxy>
@@ -180,7 +184,11 @@ ProxyPass "/apps" "http://backend.example.com/" hcexpr=ok234
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
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www.example.com/ hcexpr=in_maint hcmethod=get hcuri=/status.php
+</Proxy>
NOTE: Since response body can quite large, it is best if used against specific status pages.
@@ -202,7 +210,11 @@ ProxyPass "/apps" "http://backend.example.com/" hcexpr=in_maint hcmethod=get
parameter
ProxyHCTemplate
ProxyHCTemplate tcp5 hcmethod=tcp hcinterval=5
-ProxyPass "/apps" "http://backend.example.com/" hctemplate=tcp5
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www2.example.com/ hctemplate=tcp5
+</Proxy>
diff --git a/docs/manual/mod/mod_proxy_hcheck.xml b/docs/manual/mod/mod_proxy_hcheck.xml
index ae30c04c9d..8984287a2e 100644
--- a/docs/manual/mod/mod_proxy_hcheck.xml
+++ b/docs/manual/mod/mod_proxy_hcheck.xml
@@ -151,7 +151,11 @@ not dynamically checked at all.
ProxyHCExpr: Allow for 2xx/3xx/4xx as passing
ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
-ProxyPass "/apps" "http://backend.example.com/" hcexpr=ok234
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www2.example.com/ hcmethod=HEAD hcexpr=ok234 hcinterval=10
+</Proxy>
@@ -171,7 +175,11 @@ ProxyPass "/apps" "http://backend.example.com/" hcexpr=ok234
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
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www.example.com/ hcexpr=in_maint hcmethod=get hcuri=/status.php
+</Proxy>
@@ -197,7 +205,11 @@ ProxyPass "/apps" "http://backend.example.com/" hcexpr=in_maint hcmethod=get
ProxyHCTemplate
ProxyHCTemplate tcp5 hcmethod=tcp hcinterval=5
-ProxyPass "/apps" "http://backend.example.com/" hctemplate=tcp5
+ProxyPass "/apps" "balancer://foo"
+
+<Proxy balancer://foo>
+ BalancerMember http://www2.example.com/ hctemplate=tcp5
+</Proxy>
--
2.40.0