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