httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51489] ProxyPassReverse does not work in load balancer setups
Date Mon, 30 Jul 2012 10:25:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489

--- Comment #8 from Micha Lenk <micha@lenk.info> ---
This tiny patch for Apache 2.4.2 makes the ProxyPassReverse work again in a
load balancer setup, however, the initially reported bug with the additional
slash is then still unfixed:

--- a/modules/proxy/proxy_util.c
+++ b/modules/proxy/proxy_util.c
@@ -852,6 +852,7 @@ PROXY_DECLARE(const char *)
ap_proxy_location_reverse_map(request_rec *r,
             (balancer = ap_proxy_get_balancer(r->pool, sconf, real, 1))) {
             int n, l3 = 0;
             proxy_worker **worker = (proxy_worker **)balancer->workers->elts;
+            real += strlen(BALANCER_PREFIX);
             const char *urlpart = ap_strchr_c(real, '/');
             if (urlpart) {
                 if (!urlpart[1])

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

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


Mime
View raw message