From ce9b646c733b6822eeaccbf53649de7b1608903f Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 11 Dec 2012 12:35:50 +0000 Subject: [PATCH] rjung's suggestions... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1420124 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_proxy.xml | 32 ++++++++++++++++---------------- modules/proxy/mod_proxy.c | 6 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 63b1fa7964..9b7ce53e48 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -665,22 +665,6 @@ expressions - - BalancerInherit - Inherit Balancers from the main server - BalancerInherit On|Off - BalancerInherit Off - server configvirtual host - BalancerInherit is only available in Apache HTTP Server 2.5.0 - and later. - -

This directive will cause the current server/vhost to "inherit" Balancers - defined in the main server. This can cause issues and inconsistent - behavior if using the Balancer Manager and so is disabled - by default.

-
-
- BalancerMember Add a member to a load balancing group @@ -1211,6 +1195,22 @@ ProxyPass / balancer://hotcluster/ + + ProxyPassInherit + Inherit ProxyPass Balancers/Workers from the main server + ProxyPassInherit On|Off + ProxyPassInherit On + server configvirtual host + ProxyPassInherit is only available in Apache HTTP Server 2.5.0 + and later. + +

This directive will cause the current server/vhost to "inherit" ProxyPass + Balancers and Workers defined in the main server. This can cause issues and + inconsistent behavior if using the Balancer Manager and so should be disabled + if using that feature.

+
+
+ ProxyPassMatch Maps remote servers into the local server URL-space using regular expressions diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 25040e738b..59026755ae 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -1160,7 +1160,7 @@ static void * create_proxy_config(apr_pool_t *p, server_rec *s) ps->req = 0; ps->max_balancers = 0; ps->bal_persist = 0; - ps->inherit = 0; + ps->inherit = 1; ps->bgrowth = 5; ps->bgrowth_set = 0; ps->req_set = 0; @@ -2301,8 +2301,8 @@ static const command_rec proxy_cmds[] = "Number of additional Balancers that can be added post-config"), AP_INIT_FLAG("BalancerPersist", set_persist, NULL, RSRC_CONF, "on if the balancer should persist changes on reboot/restart made via the Balancer Manager"), - AP_INIT_FLAG("BalancerInherit", set_inherit, NULL, RSRC_CONF, - "on if this server should inherit balancers defined in the main server " + AP_INIT_FLAG("ProxyPassInherit", set_inherit, NULL, RSRC_CONF, + "on if this server should inherit ProxyPass balancers and workers defined in the main server " "(Not recommended if using the Balancer Manager)"), AP_INIT_TAKE1("ProxyStatus", set_status_opt, NULL, RSRC_CONF, "Configure Status: proxy status to one of: on | off | full"), -- 2.40.0