From: Rainer Jung Date: Thu, 9 Apr 2015 19:20:14 +0000 (+0000) Subject: Followon to r1671397 for proxy server-status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2198789a6f63f8f801615a956e2203df7fcf00f8;p=thirdparty%2Fapache%2Fhttpd.git Followon to r1671397 for proxy server-status in auto mode: - don't show HTML legend - Show correct worker name git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1672466 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 609609f07ee..e2698222a43 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -2745,7 +2745,7 @@ static int proxy_status_hook(request_rec *r, int flags) } else { ap_rprintf(r, "ProxyBalancer[%d]Worker[%d]Name: %s\n", - i, n, balancer->s->name); + i, n, (*worker)->s->name); ap_rprintf(r, "ProxyBalancer[%d]Worker[%d]Status: %s\n", i, n, ap_proxy_parse_wstatus(r->pool, *worker)); ap_rprintf(r, "ProxyBalancer[%d]Worker[%d]Elected: %" @@ -2763,19 +2763,21 @@ static int proxy_status_hook(request_rec *r, int flags) ap_rputs("\n", r); ++balancer; } - ap_rputs("
\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - "
SSesSticky session name
TimeoutBalancer Timeout
SchConnection scheme
HostBackend Hostname
StatWorker status
RouteSession Route
RedirSession Route Redirection
FLoad Balancer Factor
AccNumber of uses
WrNumber of bytes transferred
RdNumber of bytes read
", r); + if (!(flags & AP_STATUS_SHORT)) { + ap_rputs("
\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "
SSesSticky session name
TimeoutBalancer Timeout
SchConnection scheme
HostBackend Hostname
StatWorker status
RouteSession Route
RedirSession Route Redirection
FLoad Balancer Factor
AccNumber of uses
WrNumber of bytes transferred
RdNumber of bytes read
", r); + } return OK; }