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