You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/07/08 18:16:23 UTC
DO NOT REPLY [Bug 51489] New: ProxyPassReverse adds an additonal
slash in load balancer setup
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Bug #: 51489
Summary: ProxyPassReverse adds an additonal slash in load
balancer setup
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: micha@lenk.info
Classification: Unclassified
Created attachment 27275
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27275
Fix additional slash added by ProxyPassReverse in LoadBalancer setup
When Apache is used as reverse proxy in a load balancer setup, the option
'ProxyPassReverse' adds an additional slash between the server name and the
path in the Location: header sent to the web browser.
Used configuration (for reproduction of this issue):
<Proxy balancer://196f045aca6adc82a0b6eea93ed286a1>
BalancerMember http://server-1.local status=-SE
BalancerMember http://server-2.local status=-SE
</Proxy>
<VirtualHost 10.8.16.33:80>
ServerName frontend.local
<Location />
ProxyPass balancer://196f045aca6adc82a0b6eea93ed286a1/
ProxyPassReverse balancer://196f045aca6adc82a0b6eea93ed286a1/
</Location>
</VirtualHost>
Apparently there is no way to alter the configuration to prevent the addition
of the slash.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.3-HEAD |2.2.21
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #3 from William A. Rowe Jr. <wr...@apache.org> 2011-10-17 19:05:06 UTC ---
Please test
<Proxy balancer://196f045aca6adc82a0b6eea93ed286a1>
BalancerMember http://server-1.local/ status=-SE
BalancerMember http://server-2.local/ status=-SE
</Proxy>
Does this then result in doubled-slashes?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|PatchAvailable |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse does not work in load balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #9 from Micha Lenk <mi...@lenk.info> ---
Ok, issue from last comment is already fixed in trunk via PR #45434.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #29145|0 |1
is obsolete| |
--- Comment #14 from Micha Lenk <mi...@lenk.info> ---
Created attachment 29248
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29248&action=edit
Fix additional slash in load balancer setups
I've just rewritten the patch to catch the problem more precisely.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ProxyPassReverse does not |ProxyPassReverse adds an
|work in load balancer |additional slash in load
|setups |balancer setups
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #27275|0 |1
is obsolete| |
--- Comment #10 from Micha Lenk <mi...@lenk.info> ---
Created attachment 29145
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29145&action=edit
Fix for Apache 2.4.2 (including fix for PR #45434)
Using gdb I just figured out what went wrong. Attached you can find my patch
that made all things work for me using Apache 2.4.2.
I also tried to craft a test case for this issue, but for whatever reason the
test harness does not fail (maybe related to the intense usage of non-default
ports in the test setup).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #15 from Micha Lenk <mi...@lenk.info> ---
The patch from previous comment is based on branch httpd-2.4.x, SVN rev.
1374290.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Jim Jagielski <ji...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Jim Jagielski <ji...@apache.org> ---
See:
http://svn.apache.org/viewvc?view=revision&revision=1386576
http://svn.apache.org/viewvc?view=revision&revision=1386578
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #6 from Micha Lenk <mi...@lenk.info> ---
I can work on an updated patch (added to my TODO list), but I will need some
time for it due to a lot of other things keeping me busy at the moment...
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #5 from sven.peters@aapt.com.au ---
Does somebody have a patch for 2.2.22 for this?
The above patch seems to be for an older version and the logic seemed to have
changed (I only checked .21 and .22).
--
You are receiving this mail because:
You are the assignee for the bug.
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Joe Orton <jo...@redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Joe Orton <jo...@redhat.com> ---
Ah, I missed this bug before, sorry. Yes, this is fixed for the next 2.4.x
release, I'll update CHANGES to ref this bug since it's a different bug to the
2.2 issue, and a regression.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ProxyPassReverse adds an |ProxyPassReverse adds an
|additonal slash in load |additional slash in load
|balancer setup |balancer setup
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #13 from Joe Orton <jo...@redhat.com> ---
Oh, I see. Sorry, no, I missed the point.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse does not work in load balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #8 from Micha Lenk <mi...@lenk.info> ---
This tiny patch for Apache 2.4.2 makes the ProxyPassReverse work again in a
load balancer setup, however, the initially reported bug with the additional
slash is then still unfixed:
--- a/modules/proxy/proxy_util.c
+++ b/modules/proxy/proxy_util.c
@@ -852,6 +852,7 @@ PROXY_DECLARE(const char *)
ap_proxy_location_reverse_map(request_rec *r,
(balancer = ap_proxy_get_balancer(r->pool, sconf, real, 1))) {
int n, l3 = 0;
proxy_worker **worker = (proxy_worker **)balancer->workers->elts;
+ real += strlen(BALANCER_PREFIX);
const char *urlpart = ap_strchr_c(real, '/');
if (urlpart) {
if (!urlpart[1])
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse does not work in load balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
Version|2.2.21 |2.4.2
Summary|ProxyPassReverse adds an |ProxyPassReverse does not
|additional slash in load |work in load balancer
|balancer setup |setups
--- Comment #7 from Micha Lenk <mi...@lenk.info> ---
I just tried to reproduce the issue again with Apache 2.4.2. Now the directive
doesn't work at all in a load balancer setup. :(
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from Micha Lenk <mi...@lenk.info> 2011-10-17 16:50:01 UTC ---
No, consistently using a slash after the load balancer id does *not* help: In
this case every backend request gets an additional slash before the path. Maybe
we should fix *this* issue then...
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
--- Comment #4 from Micha Lenk <mi...@lenk.info> 2011-10-18 08:51:55 UTC ---
yes
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51489] ProxyPassReverse adds an additional slash
in load balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Micha Lenk <mi...@lenk.info> 2011-08-22 13:15:23 UTC ---
I found out that I have no issue at all if the config consistently uses a slash
after the load balancer id.
<Proxy balancer://196f045aca6adc82a0b6eea93ed286a1/>
BalancerMember http://server-1.local/ status=-SE
BalancerMember http://server-2.local/ status=-SE
</Proxy>
<VirtualHost 10.8.16.33:80>
ServerName frontend.local
<Location />
ProxyPass balancer://196f045aca6adc82a0b6eea93ed286a1/
ProxyPassReverse balancer://196f045aca6adc82a0b6eea93ed286a1/
</Location>
</VirtualHost>
So, please consider the case as solved and the patch as void.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setups
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
Micha Lenk <mi...@lenk.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #12 from Micha Lenk <mi...@lenk.info> ---
I fear you got me wrong. The changeset you committed in SVN rev. 1374264 should
be reverted, as the bug that got fixed in branch httpd-2.4.x by SVN rev.
1365604 is PR 45434 only. The issue that I reported in PR 51489 is *not* fixed
by changing the CHANGES file only (as in SVN rev. 1374264).
Or did I miss anything?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51489] ProxyPassReverse adds an additional slash in load
balancer setup
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51489
sven.peters@aapt.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sven.peters@aapt.com.au
--
You are receiving this mail because:
You are the assignee for the bug.