summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2012-09-13 17:15:35 +0000
committerJim Jagielski <jim@apache.org>2012-09-13 17:15:35 +0000
commitbd6ae96fb8dab653e4821488ff068a065a1b21f4 (patch)
treeebc18a1f678f7d5444bddc3f8469d9dcbb3a59c5
parent0655c7884ab4142da401f37a7e45910559ce31ac (diff)
downloadhttpd-bd6ae96fb8dab653e4821488ff068a065a1b21f4.tar.gz
Merge r1384408 from trunk:
Best practice Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1384410 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_proxy.xml16
-rw-r--r--docs/manual/mod/mod_proxy_balancer.xml28
2 files changed, 22 insertions, 22 deletions
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index b8dbc2adcc..03da7881fc 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -696,8 +696,8 @@ expressions</description>
<example>
<highlight language="config">
&lt;Proxy balancer://hotcluster&gt;
- BalancerMember http://www2.example.com:8080 loadfactor=1
- BalancerMember http://www3.example.com:8080 loadfactor=2
+ BalancerMember http://www2.example.com:8080/ loadfactor=1
+ BalancerMember http://www3.example.com:8080/ loadfactor=2
ProxySet lbmethod=bytraffic
&lt;/Proxy&gt;
</highlight>
@@ -1111,10 +1111,10 @@ ProxyPass /mirror/foo http://backend.example.com
ProxyPass /special-area http://special.example.com smax=5 max=10
ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On
&lt;Proxy balancer://mycluster&gt;
- BalancerMember ajp://1.2.3.4:8009
- BalancerMember ajp://1.2.3.5:8009 loadfactor=20
+ BalancerMember ajp://1.2.3.4:8009/
+ BalancerMember ajp://1.2.3.5:8009/ loadfactor=20
# Less powerful server, don't send as many requests there,
- BalancerMember ajp://1.2.3.6:8009 loadfactor=5
+ BalancerMember ajp://1.2.3.6:8009/ loadfactor=5
&lt;/Proxy&gt;
</highlight>
@@ -1123,10 +1123,10 @@ ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover
<highlight language="config">
ProxyPass / balancer://hotcluster/
&lt;Proxy balancer://hotcluster&gt;
- BalancerMember ajp://1.2.3.4:8009 loadfactor=1
- BalancerMember ajp://1.2.3.5:8009 loadfactor=2
+ BalancerMember ajp://1.2.3.4:8009/ loadfactor=1
+ BalancerMember ajp://1.2.3.5:8009/ loadfactor=2
# The server below is on hot standby
- BalancerMember ajp://1.2.3.6:8009 status=+H
+ BalancerMember ajp://1.2.3.6:8009/ status=+H
ProxySet lbmethod=bytraffic
&lt;/Proxy&gt;
</highlight>
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">
-&lt;Proxy balancer://mycluster&gt;
- BalancerMember http://192.168.1.50:80
- BalancerMember http://192.168.1.51:80
+&lt;Proxy balancer://mycluster/&gt;
+ BalancerMember http://192.168.1.50:80/
+ BalancerMember http://192.168.1.51:80/
&lt;/Proxy&gt;
-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
-&lt;Proxy balancer://mycluster&gt;
- BalancerMember http://192.168.1.50:80 route=1
- BalancerMember http://192.168.1.51:80 route=2
+&lt;Proxy balancer://mycluster/&gt;
+ BalancerMember http://192.168.1.50:80/ route=1
+ BalancerMember http://192.168.1.51:80/ route=2
ProxySet stickysession=ROUTEID
&lt;/Proxy&gt;
-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
&lt;Proxy balancer://mycluster&gt;
- 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
&lt;/Proxy&gt;
</highlight>
<p>If the cookie and the request parameter both provide routing information