httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taka...@apache.org
Subject svn commit: r663981 - in /httpd/httpd/branches/2.2.x/docs/manual/mod: mod_proxy_balancer.html.en mod_proxy_balancer.xml
Date Fri, 06 Jun 2008 15:26:09 GMT
Author: takashi
Date: Fri Jun  6 08:26:09 2008
New Revision: 663981

URL: http://svn.apache.org/viewvc?rev=663981&view=rev
Log:
Merge r468896 from trunk:
Add a usage example to mod_proxy_balancer.

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.html.en
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.xml

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.html.en?rev=663981&r1=663980&r2=663981&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.html.en Fri Jun  6 08:26:09
2008
@@ -51,6 +51,7 @@
 <h3>Topics</h3>
 <ul id="topics">
 <li><img alt="" src="../images/down.gif" /> <a href="#scheduler">Load balancer
scheduler algorithm</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#example">Example
of a balancer configuration</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#requests">Request
Counting Algorithm</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#traffic">Weighted
Traffic Counting Algorithm</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#environment">Exported
Environment Variables</a></li>
@@ -71,6 +72,22 @@
 
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">
+<h2><a name="example" id="example">Example of a balancer configuration</a></h2>
+	
+	<p>Before we dive into the technical details, here's an example of
+	how you might use <code class="module"><a href="../mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code>
to provide
+	load balancing between two back-end servers:
+	</p>
+
+	<div class="example"><p><code>
+	&lt;Proxy balancer://mycluster&gt;<br />
+		BalancerMember http://192.168.1.50:80<br />
+		BalancerMember http://192.168.1.51:80<br />
+	&lt;/Proxy&gt;<br />
+	ProxyPass /test balancer://mycluster/
+	</code></p></div>
+</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
+<div class="section">
 <h2><a name="requests" id="requests">Request Counting Algorithm</a></h2>
     
     <p>Enabled via <code>lbmethod=byrequests</code>, the idea behind this

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.xml?rev=663981&r1=663980&r2=663981&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_proxy_balancer.xml Fri Jun  6 08:26:09
2008
@@ -58,6 +58,22 @@
 
 </section>
 
+<section id="example">
+	<title>Example of a balancer configuration</title>
+	<p>Before we dive into the technical details, here's an example of
+	how you might use <module>mod_proxy_balancer</module> to provide
+	load balancing between two back-end servers:
+	</p>
+
+	<example>
+	&lt;Proxy balancer://mycluster&gt;<br />
+		BalancerMember http://192.168.1.50:80<br />
+		BalancerMember http://192.168.1.51:80<br />
+	&lt;/Proxy&gt;<br />
+	ProxyPass /test balancer://mycluster/
+	</example>
+</section>
+
 <section id="requests">
     <title>Request Counting Algorithm</title>
     <p>Enabled via <code>lbmethod=byrequests</code>, the idea behind this



Mime
View raw message