Hello Community.

at February 24 I've sent email to b...@openbsd.org about bug in httpd
module mod_proxy and enclosed patch to fix issue,
no answer since that. What should I do now ?

mod_proxy module of httpd has bug in Current.

last 1.17 revision:
"Add ! support to ProxyPass to exclude directories from being proxied.
>From Stephan A. Rickauer <stephan dot rickauer at startek dot ch> with
minor tweaks.  ok by many."

here we have misplaced IF condition of that patch and so ! directive
doesn't work.
I have checked that patch on Current and Patch branches.

Please, find patch following:

# cvs diff -u mod_proxy.c
Index: mod_proxy.c
===================================================================
RCS file: /cvs/src/usr.sbin/httpd/src/modules/proxy/mod_proxy.c,v
retrieving revision 1.17
diff -u mod_proxy.c
--- mod_proxy.c 26 Aug 2009 04:49:50 -0000      1.17
+++ mod_proxy.c 24 Feb 2010 15:14:44 -0000
@@ -199,10 +199,10 @@
    for (i = 0; i < conf->aliases->nelts; i++) {
        len = alias_match(r->uri, ent[i].fake);

-        if (ent[i].real[0] == '!' && ent[i].real[1] == '\0')
-            return DECLINED;
-
        if (len > 0) {
+                if (ent[i].real[0] == '!' && ent[i].real[1] == '\0')
+                                 return DECLINED;
+
            r->filename = ap_pstrcat(r->pool, "proxy:", ent[i].real,
                                     r->uri + len, NULL);
            r->handler = "proxy-server";

Reply via email to