diff options
author | Jim Jagielski <jim@apache.org> | 2012-09-13 19:14:28 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2012-09-13 19:14:28 +0200 |
commit | 9b6e8036fb7c5872ed4bce5b14e1f2335fd5ad71 (patch) | |
tree | e28ec5d01c703f44446ccc861aec66f4f22b6813 /docs/manual/mod/mod_proxy_balancer.xml | |
parent | Updates. (diff) | |
download | apache2-9b6e8036fb7c5872ed4bce5b14e1f2335fd5ad71.tar.xz apache2-9b6e8036fb7c5872ed4bce5b14e1f2335fd5ad71.zip |
Best practice
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1384408 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_proxy_balancer.xml')
-rw-r--r-- | docs/manual/mod/mod_proxy_balancer.xml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/manual/mod/mod_proxy_balancer.xml b/docs/manual/mod/mod_proxy_balancer.xml index 692a110bcb..94968ebaff 100644 --- a/docs/manual/mod/mod_proxy_balancer.xml +++ b/docs/manual/mod/mod_proxy_balancer.xml @@ -92,12 +92,12 @@ </p> <highlight language="config"> -<Proxy balancer://mycluster> - BalancerMember http://192.168.1.50:80 - BalancerMember http://192.168.1.51:80 +<Proxy balancer://mycluster/> + BalancerMember http://192.168.1.50:80/ + BalancerMember http://192.168.1.51:80/ </Proxy> -ProxyPass /test balancer://mycluster -ProxyPassReverse /test balancer://mycluster +ProxyPass /test balancer://mycluster/ +ProxyPassReverse /test balancer://mycluster/ </highlight> <p>Another example of how to provide load balancing with stickyness @@ -107,13 +107,13 @@ ProxyPassReverse /test balancer://mycluster <highlight language="config"> Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED -<Proxy balancer://mycluster> - BalancerMember http://192.168.1.50:80 route=1 - BalancerMember http://192.168.1.51:80 route=2 +<Proxy balancer://mycluster/> + BalancerMember http://192.168.1.50:80/ route=1 + BalancerMember http://192.168.1.51:80/ route=2 ProxySet stickysession=ROUTEID </Proxy> -ProxyPass /test balancer://mycluster -ProxyPassReverse /test balancer://mycluster +ProxyPass /test balancer://mycluster/ +ProxyPassReverse /test balancer://mycluster/ </highlight> </section> @@ -140,7 +140,7 @@ ProxyPassReverse /test balancer://mycluster <dt><var><a name="balancer_name" id="balancer_name">BALANCER_NAME</a></var></dt> <dd> <p>This is assigned the name of the balancer used for the current - request. The value is something like <code>balancer://foo</code>.</p> + request. The value is something like <code>balancer://foo/</code>.</p> </dd> <!-- ============= BALANCER_WORKER_NAME ================== --> @@ -249,10 +249,10 @@ ProxyPassReverse /test balancer://mycluster configuring the name of the cookie and the name of the URL parameter separated by a vertical bar (<code>|</code>) as in the following example:</p> <highlight language="config"> -ProxyPass /test balancer://mycluster stickysession=JSESSIONID|jsessionid scolonpathdelim=On +ProxyPass /test balancer://mycluster/ stickysession=JSESSIONID|jsessionid scolonpathdelim=On <Proxy balancer://mycluster> - BalancerMember http://192.168.1.50:80 route=node1 - BalancerMember http://192.168.1.51:80 route=node2 + BalancerMember http://192.168.1.50:80/ route=node1 + BalancerMember http://192.168.1.51:80/ route=node2 </Proxy> </highlight> <p>If the cookie and the request parameter both provide routing information |