altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1651658.patch

07ea28
--- a/modules/proxy/mod_proxy_fcgi.c	2015/01/14 13:22:50	1651657
07ea28
+++ b/modules/proxy/mod_proxy_fcgi.c	2015/01/14 13:24:10	1651658
07ea28
@@ -204,9 +204,19 @@
07ea28
     apr_status_t rv;
07ea28
     apr_size_t len;
07ea28
     int i, numenv;
07ea28
+    char *proxyfilename = r->filename;
07ea28
+
07ea28
+    /* Strip balancer prefix */
07ea28
+    if (r->filename && !strncmp(r->filename, "proxy:balancer://", 17)) { 
07ea28
+        char *newfname = apr_pstrdup(r->pool, r->filename+17);
07ea28
+        newfname = ap_strchr(newfname, '/');
07ea28
+        r->filename  = newfname;
07ea28
+    }
07ea28
 
07ea28
     ap_add_common_vars(r);
07ea28
     ap_add_cgi_vars(r);
07ea28
+ 
07ea28
+    r->filename = proxyfilename;
07ea28
 
07ea28
     /* XXX are there any FastCGI specific env vars we need to send? */
07ea28