httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36906] - balancer seems to rewrite the URL before it is proxied
Date Tue, 25 Oct 2005 19:15:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36906>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36906


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From rpluem@apache.org  2005-10-25 21:15 -------
Ok, you got me :-). Of course your second comment is completely valid and it
does not seem to be logical why your configuration does not work, but mine does.
So I try to explain what happens:

The right side of a ProxyPass side will be normalized. Your configuration
contains the URL balancer://mycluster. This gets normalized to
balancer://mycluster/ which is correct, as the URL should consist of
<scheme>://<host><uri>. If uri is empty it is assumed to be "/".
On the other hand when creating the final proxy URL from a balancer member the
approach is:

<balancer member><uri of right side of ProxyPass><path after left side of
ProxyPass in request>

In your case this means e.g.

http://10.1.2.11:4321/Test (balancer member) + "/" (uri of right side of
ProxyPass) + "" (path after left side of ProxyPass in request) =
http://10.1.2.11:4321/Test/.

In general this approach is fine and correct. But it makes the following
configurations impossible in cases where Test1 and Test2 cannot handle the
trailing /:

  <Proxy balancer://mycluster>
    BalancerMember "http://10.1.2.10:4321/Test1" retry=10 loadfactor=1
    BalancerMember "http://10.1.2.11:4321/Test2" retry=10 loadfactor=1
  </Proxy>
  ProxyPass /Test balancer://mycluster lbmethod=byrequests

But after a first glance to the code make this work and keep all other cases
working seem to get complicated. So I will

- Mark this bug as fixed close (as your problem is fixed with the patch and the
adjusted configuration)
- Try to get the patch in 2.1.9
- Keep this in mind and have a look when I have time. I will update this PR once
I find a solution for this.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message