Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  7 Mar 2012 10:04:37 +0100 (CET)
From:      freebsd@nagilum.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Clement Laforet <clement@FreeBSD.org>
Subject:   ports/165809: add mod_proxy patch to apache-2.2.22_5
Message-ID:  <20120307090437.4B7A0678B9@cakebox.homeunix.net>
Resent-Message-ID: <201203070910.q279A6iC040894@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120307090437.4B7A0678B9>