https://bz.apache.org/bugzilla/show_bug.cgi?id=60038

            Bug ID: 60038
           Summary: params hcuri and hcexpr are ignored
           Product: Apache httpd-2
           Version: 2.4.23
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_hcheck
          Assignee: bugs@httpd.apache.org
          Reporter: zd...@scnet.sk

Parameters hcuri and hcexpr are ignored.

from configuration file:
- - - - 8< - - - - - - - - - - - - - - - 
ProxyHCExpr is_up {%{REQUEST_STATUS} !~ /^[5]/}

<Proxy balancer://some_services>
  BalancerMember http://server1:port hcmethod=GET hcexpr=is_up hcinterval=5
hcuri=/services/service1
  BalancerMember http://server2:port hcmethod=GET hcexpr=is_up hcinterval=5
hcuri=/services/service1

  ...
</Proxy>
- - - - 8< - - - - - - - - - - - - - - - 


In error_log on BalanceMember you can see:
... [error] [client ip.ad.dr.es] Invalid URI in request GET  HTTP/1.0


Possible patch:
--- modules/proxy/mod_proxy_hcheck.c-old       Wed Aug 24 07:30:38 2016
+++ modules/proxy/mod_proxy_hcheck.c    Wed Aug 24 13:04:32 2016
@@ -426,6 +426,8 @@
         PROXY_STRNCPY(hc->s->name,     wptr);
         PROXY_STRNCPY(hc->s->hostname, worker->s->hostname);
         PROXY_STRNCPY(hc->s->scheme,   worker->s->scheme);
+        PROXY_STRNCPY(hc->s->hcuri,    worker->s->hcuri);
+        PROXY_STRNCPY(hc->s->hcexpr,   worker->s->hcexpr);
         hc->hash.def = hc->s->hash.def = ap_proxy_hashfunc(hc->s->name,
PROXY_HASHFUNC_DEFAULT);
         hc->hash.fnv = hc->s->hash.fnv = ap_proxy_hashfunc(hc->s->name,
PROXY_HASHFUNC_FNV);
         hc->s->port = port;

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to