]> granicus.if.org Git - apache/commitdiff
Arrange the examples: use a balancer member.
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 12 Dec 2017 12:36:25 +0000 (12:36 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 12 Dec 2017 12:36:25 +0000 (12:36 +0000)
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
docs/manual/mod/mod_proxy_hcheck.xml

index 525103291ce4bfbd1070a72e71005e52daf6b85d..67970deb09b12a198917f31d5d3d00ff19fc6706 100644 (file)
@@ -163,7 +163,11 @@ not dynamically checked at all.</p>
        parameter</p>
 
     <div class="example"><h3>ProxyHCExpr: Allow for 2xx/3xx/4xx as passing</h3><pre class="prettyprint lang-config">ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
-ProxyPass "/apps"     "http://backend.example.com/" hcexpr=ok234</pre>
+ProxyPass "/apps"     "balancer://foo"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www2.example.com/  hcmethod=HEAD hcexpr=ok234 hcinterval=10
+&lt;/Proxy&gt;</pre>
 </div>
 
     <div class="note">
@@ -180,7 +184,11 @@ ProxyPass "/apps"     "http://backend.example.com/" hcexpr=ok234</pre>
     we want to disable the backend.</p>
 
     <div class="example"><h3>ProxyHCExpr: Checking response body</h3><pre class="prettyprint lang-config">ProxyHCExpr in_maint {hc('body') !~ /Under maintenance/}
-ProxyPass "/apps"     "http://backend.example.com/" hcexpr=in_maint hcmethod=get hcuri=/status.php</pre>
+ProxyPass "/apps"     "balancer://foo"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www.example.com/ hcexpr=in_maint hcmethod=get hcuri=/status.php
+&lt;/Proxy&gt;</pre>
 </div>
 
     <p><em>NOTE:</em> Since response body can quite large, it is best if used against specific status pages.</p>
@@ -202,7 +210,11 @@ ProxyPass "/apps"     "http://backend.example.com/" hcexpr=in_maint hcmethod=get
        parameter</p>
 
     <div class="example"><h3>ProxyHCTemplate</h3><pre class="prettyprint lang-config">ProxyHCTemplate tcp5 hcmethod=tcp hcinterval=5
-ProxyPass "/apps"     "http://backend.example.com/" hctemplate=tcp5</pre>
+ProxyPass "/apps"     "balancer://foo"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www2.example.com/ hctemplate=tcp5
+&lt;/Proxy&gt;</pre>
 </div>
 
 
index ae30c04c9d5afc118bbf5b7ad3151b7ce9b4a90b..8984287a2e250a0833580901b3dfb570d31833e7 100644 (file)
@@ -151,7 +151,11 @@ not dynamically checked at all.</p>
     <example><title>ProxyHCExpr: Allow for 2xx/3xx/4xx as passing</title>
     <highlight language="config">
 ProxyHCExpr ok234 {%{REQUEST_STATUS} =~ /^[234]/}
-ProxyPass "/apps"     "http://backend.example.com/" hcexpr=ok234
+ProxyPass "/apps"     "balancer://foo"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www2.example.com/  hcmethod=HEAD hcexpr=ok234 hcinterval=10
+&lt;/Proxy&gt;
     </highlight>
     </example>
 
@@ -171,7 +175,11 @@ ProxyPass "/apps"     "http://backend.example.com/" hcexpr=ok234
     <example><title>ProxyHCExpr: Checking response body</title>
     <highlight language="config">
 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"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www.example.com/ hcexpr=in_maint hcmethod=get hcuri=/status.php
+&lt;/Proxy&gt;
     </highlight>
     </example>
 
@@ -197,7 +205,11 @@ ProxyPass "/apps"     "http://backend.example.com/" hcexpr=in_maint hcmethod=get
     <example><title>ProxyHCTemplate</title>
     <highlight language="config">
 ProxyHCTemplate tcp5 hcmethod=tcp hcinterval=5
-ProxyPass "/apps"     "http://backend.example.com/" hctemplate=tcp5
+ProxyPass "/apps"     "balancer://foo"
+
+&lt;Proxy balancer://foo&gt;
+  BalancerMember http://www2.example.com/ hctemplate=tcp5
+&lt;/Proxy&gt;
     </highlight>
     </example>