You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2017/12/12 12:36:25 UTC

svn commit: r1817908 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy_hcheck.html.en mod_proxy_hcheck.xml

Author: jfclere
Date: Tue Dec 12 12:36:25 2017
New Revision: 1817908

URL: http://svn.apache.org/viewvc?rev=1817908&view=rev
Log:
Arrange the examples: use a balancer member.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.html.en?rev=1817908&r1=1817907&r2=1817908&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.html.en Tue Dec 12 12:36:25 2017
@@ -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.ex
     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.ex
        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>
 
 

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.xml?rev=1817908&r1=1817907&r2=1817908&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_hcheck.xml Tue Dec 12 12:36:25 2017
@@ -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.ex
     <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.ex
     <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>