httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r824151 - /httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml
Date Sun, 11 Oct 2009 21:00:14 GMT
Author: sf
Date: Sun Oct 11 21:00:13 2009
New Revision: 824151

URL: http://svn.apache.org/viewvc?rev=824151&view=rev
Log:
Add example of load balancing with stickyness using mod_headers.

PR: 46167

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml?rev=824151&r1=824150&r2=824151&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml Sun Oct 11 21:00:13 2009
@@ -67,7 +67,7 @@
 </section>
 
 <section id="example">
-    <title>Example of a balancer configuration</title>
+    <title>Examples 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:
@@ -80,6 +80,22 @@
     &lt;/Proxy&gt;<br />
     ProxyPass /test balancer://mycluster/
     </example>
+
+    <p>Another example of how to provide load balancing with stickyness
+    using <module>mod_headers</module>, even if the backend server does
+    not set a suitable session cookie:
+    </p>
+
+    <example>
+    Header add Set-Cookie: "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/"
+           env=BALANCER_ROUTE_CHANGED<br />
+    &lt;Proxy balancer://mycluster&gt;<br />
+    BalancerMember http://192.168.1.50:80 route=1<br />
+    BalancerMember http://192.168.1.51:80 route=2<br />
+    ProxySet stickysession=ROUTEID<br />
+    &lt;/Proxy&gt;<br />
+    ProxyPass /test balancer://mycluster/
+    </example>
 </section>
 
 <section id="environment">



Mime
View raw message