ports/165809: add mod_proxy patch to apache-2.2.22_5
freebsd at nagilum.org
freebsd at nagilum.org
Wed Mar 7 09:10:07 UTC 2012
>Number: 165809
>Category: ports
>Synopsis: add mod_proxy patch to apache-2.2.22_5
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 07 09:10:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: freebsd at nagilum.org
>Release: FreeBSD 9.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD cakebox.tis 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Feb 27 09:34:17 CET 2012 root at cakebox.tis:/usr/obj/export/src/sys/net5501 i386
>Description:
The attached patch to the port adds another patch to the
"files/" directory. The patch fixes a regression
in the handling of ProxyPassReverse in connection with
<Location ...> and <LocationMatch ...>.
The patch is a straight copy of the patch from
https://issues.apache.org/bugzilla/show_bug.cgi?id=38864
>How-To-Repeat:
>Fix:
Apply attached patch.
--- ap.patch begins here ---
diff -Naur apache22.bak/files/patch-modules__proxy__proxy_util.c apache22/files/patch-modules__proxy__proxy_util.c
--- apache22.bak/files/patch-modules__proxy__proxy_util.c 1970-01-01 01:00:00.000000000 +0100
+++ apache22/files/patch-modules__proxy__proxy_util.c 2012-03-06 22:46:13.000000000 +0100
@@ -0,0 +1,21 @@
+Index: modules/proxy/proxy_util.c
+===================================================================
+--- modules/proxy/proxy_util.c (revision 893855)
++++ modules/proxy/proxy_util.c (working copy)
+@@ -1117,6 +1117,16 @@
+ }
+ else {
+ l2 = strlen(real);
++ if (real[0] == '/') {
++ const char *part = strstr(url, "://");
++ if (part) {
++ part = strstr(part+3, "/");
++ if (part) {
++ url = part;
++ l1 = strlen(url);
++ }
++ }
++ }
+ if (l1 >= l2 && strncasecmp(real, url, l2) == 0) {
+ u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
+ return ap_construct_url(r->pool, u, r);
--- ap.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list