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 ae30c04c9d5..8984287a2e2 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>