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 2006/04/27 00:00:29 UTC

DO NOT REPLY [Bug 39419] New: - ProxyPass proxies requests to incorrect origin server

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=39419>.
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=39419

           Summary: ProxyPass proxies requests to incorrect origin server
           Product: Apache httpd-2
           Version: 2.2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P4
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Dick.Snippe@tech.omroep.nl


We run apache-2.2.0 as a reverse, caching proxy.
(mod_proxy, mod_proxy_http, mod_cache, mod_disk_cache, prefork mpm)
Now and then (once every million uncached hits or so) we see origin servers
receive proxied requests meant for other origin servers.

This only happens in setups where earlier proxypass rules shadow latter rules, as in
ProxyPass /foo http://fooserver/foo
ProxyPass / http://defaultserver/

Now and the accesslogs for defaultserver show requests for /foo/...
This should not be possible, and is somewhat annoying because these incorrect
answers from defaultserver might be cached and so be served to many people
instead of just one.

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


DO NOT REPLY [Bug 39419] - ProxyPass proxies requests to incorrect origin server

Posted by bu...@apache.org.
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=39419>.
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=39419





------- Additional Comments From Dick.Snippe@tech.omroep.nl  2006-04-27 13:04 -------
(In reply to comment #1)
> You need to put the most specific pathes last. So this is a documentation bug.

I tried reversing the order, but that did not work (all requests go to the least
specific path i.e. the first entry "wins".)

Mind you: the strange behaviour I reported only happens once in a million hits.

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


DO NOT REPLY [Bug 39419] - ProxyPass proxies requests to incorrect origin server

Posted by bu...@apache.org.
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=39419>.
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=39419





------- Additional Comments From rpluem@apache.org  2006-04-27 09:55 -------
As stated in the documentation
(http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass) order of
ProxyPass directives is important. From what I can see now in the documentation
the wrong order is described. You need to put the most specific pathes last. So
this is a documentation bug.

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


DO NOT REPLY [Bug 39419] - ProxyPass proxies requests to incorrect origin server

Posted by bu...@apache.org.
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=39419>.
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=39419


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From rpluem@apache.org  2006-04-27 15:53 -------
Ahh, sorry. I now had a look in the apr sources and found out that I
missunderstood the apr documentation. The httpd documentation is correct.
Also your order of ProxyPass directives is correct.
Furthermore I missed the point that your configuration works in general, but
only has problems in some rare cases.
The upcoming release 2.2.2 has many fixes to mod_proxy. Some are somewhat
similar to your problem. So I would suggest the following:

1. Wait until 2.2.2 is released and test again.
2. For the impatient: You can already download the 2.2.2 tar ball that is
currently in discussion for being released on the dev list. Its here:

http://httpd.apache.org/dev/dist/httpd-2.2.2.tar.gz

   Please give it a try and let me know if the problem is still there.

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


DO NOT REPLY [Bug 39419] - ProxyPass proxies requests to incorrect origin server

Posted by bu...@apache.org.
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=39419>.
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=39419


nick@webthing.com changed:

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




------- Additional Comments From nick@webthing.com  2007-09-01 10:10 -------
No reply to Ruediger - assuming fixed.

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