diff options
Diffstat (limited to 'docs/manual/mod/mod_proxy_balancer.html.en')
-rw-r--r-- | docs/manual/mod/mod_proxy_balancer.html.en | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/docs/manual/mod/mod_proxy_balancer.html.en b/docs/manual/mod/mod_proxy_balancer.html.en index abbaee50..2a1f9249 100644 --- a/docs/manual/mod/mod_proxy_balancer.html.en +++ b/docs/manual/mod/mod_proxy_balancer.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -110,14 +110,12 @@ load balancing between two back-end servers: </p> - <pre class="prettyprint lang-config"> -<Proxy balancer://mycluster> + <pre class="prettyprint lang-config"><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 - </pre> +ProxyPassReverse /test balancer://mycluster</pre> <p>Another example of how to provide load balancing with stickyness @@ -125,16 +123,14 @@ ProxyPassReverse /test balancer://mycluster not set a suitable session cookie: </p> - <pre class="prettyprint lang-config"> -Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED + <pre class="prettyprint lang-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 ProxySet stickysession=ROUTEID </Proxy> ProxyPass /test balancer://mycluster -ProxyPassReverse /test balancer://mycluster - </pre> +ProxyPassReverse /test balancer://mycluster</pre> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> @@ -208,12 +204,10 @@ ProxyPassReverse /test balancer://mycluster <p>To enable load balancer management for browsers from the example.com domain add this code to your <code>httpd.conf</code> configuration file</p> -<pre class="prettyprint lang-config"> -<Location /balancer-manager> +<pre class="prettyprint lang-config"><Location /balancer-manager> SetHandler balancer-manager Require host example.com -</Location> -</pre> +</Location></pre> <p>You can now access load balancer manager by using a Web browser @@ -270,13 +264,11 @@ ProxyPassReverse /test balancer://mycluster <p>Finally you can support cookies and URL encoding at the same time, by 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> - <pre class="prettyprint lang-config"> -ProxyPass /test balancer://mycluster stickysession=JSESSIONID|jsessionid scolonpathdelim=On + <pre class="prettyprint lang-config">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 -</Proxy> - </pre> +</Proxy></pre> <p>If the cookie and the request parameter both provide routing information for the same request, the information from the request parameter is used.</p> @@ -347,7 +339,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_proxy_balanc } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |