From: Jim Jagielski Date: Mon, 28 Nov 2011 20:46:53 +0000 (+0000) Subject: Expose the path that the balancer handles... X-Git-Tag: 2.5.0-alpha~7793 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71f487a7b9498d30c8ed9809a36709cf8a0ea31c;p=apache Expose the path that the balancer handles... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1207582 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 9f15023c6d..519b70eef5 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -1455,6 +1455,9 @@ static const char * if (err) return apr_pstrcat(cmd->temp_pool, "ProxyPass ", err, NULL); } + else { + ap_proxy_update_balancer(cmd->pool, balancer, f); + } for (i = 0; i < arr->nelts; i++) { const char *err = set_balancer_param(conf, cmd->pool, balancer, elts[i].key, elts[i].val); diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 099b5ddb70..83c365d109 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -1198,10 +1198,10 @@ static int balancer_handler(request_rec *r) balancer->s->name + sizeof(BALANCER_PREFIX) - 1, "&nonce=", balancer->s->nonce, "'>", NULL); - ap_rvputs(r, balancer->s->name, "\n\n", NULL); + ap_rvputs(r, balancer->s->name, "\n", NULL); ap_rputs("\n\n" "" - "\n", r); + "\n", r); /* the below is a safe cast, since the number of slots total will * never be more than max_workers, which is restricted to int */ ap_rprintf(r, "\n", balancer->max_workers, @@ -1225,6 +1225,11 @@ static int balancer_handler(request_rec *r) ap_rprintf(r, "\n", balancer->s->max_attempts); ap_rprintf(r, "\n", balancer->s->lbpname); + ap_rputs("\n", NULL); ap_rputs("
MaxMembersStickySessionDisableFailoverTimeoutFailoverAttemptsMethod
Path
%d [%d Used]%d%s", r); + if (balancer->s->vhost && *(balancer->s->vhost)) { + ap_rvputs(r, balancer->s->vhost, " -> ", NULL); + } + ap_rvputs(r, balancer->s->vpath, "
\n
", r); ap_rputs("\n\n" ""
Worker URL