Mailing List Archive

[Bug 51982] ProxyPassReverse / balancer://cluster/ adds slash to redirect (really!)
https://bz.apache.org/bugzilla/show_bug.cgi?id=51982

--- Comment #11 from wyckoffj@trimet.org ---
(In reply to cweekly from comment #10)
> I don't think the backport was applied successfully in 2.2.26. That is, I
> believe this issue remains unresolved in 2.2.26. (I ran into it on 2.2.22,
> and found identical behavior in 2.2.26.) I ended up migrating to 2.4(.9)
> where it is in fact resolved.
>
> I don't have time to recreate my 2.2.26 conf details here, but I can attest
> we saw this exact problem: extra slash introduced in Location header of
> redirect response from proxied apps, when proxying to a balancer (vs
> directly to a particular member -- which didn't meet our needs).
>
> Sorry for not having more rigorous details to reprod, but for anyone reading
> this experiencing frustration, may I heartily recommend biting the bullet
> and upgrading to 2.4. In the end our conf is cleaner and more concise, and
> mod_proxy_balancer + mod_rewrite are working in perfect harmony to route
> requests to one of multiple load-balanced apps behind a given apache.
>
> I'm reopening this to draw attention to it, but sorry in advance for not
> having time to discuss it much further.

I am actually getting the same behavior in apache 2.4. The forward slash is
being appended to the balancermember below. Is there a workaround / patch?

VERSION
Server version: Apache/2.4.6 (CentOS)
Server built: Mar 24 2022 14:57:57

CONFIGURATION
<Proxy "balancer://cluster">
BalancerMember http://testsite/something
</Proxy>

<Location /test/v1>
Require all granted
ProxyPass balancer://cluster
ProxyPassReverse balancer://cluster
</Location>

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