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/08 14:09:29 UTC

DO NOT REPLY [Bug 39253] New: - Rewrite proxy requests being handled by wrong proxy

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

           Summary: Rewrite proxy requests being handled by wrong proxy
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: bjorn@exoweb.net


In Apache 2.2.1 (the release candidate) either mod_proxy or mod_rewrite is breaking badly.  Here's 
what the trimmed down config file looks like (it still exhibits the same problem):

	Listen 192.168.100.22:80
	<VirtualHost 192.168.100.22:80>
	        ServerName www.domain.com

	        RewriteEngine On
	        RewriteRule ^/external/(.*)		http://192.168.100.66:8099/$1 [P]
	        RewriteRule  ^/(.*)			http://127.0.0.1:8080/$1 [P]
	</VirtualHost>


Steps to reproduce the problem:

SCENARIO 1:

1. Restart Apache

2. Access http://www.domain.com/
-> is proxied to 127.0.0.1:8080 as expected

3. Access http://www.domain.com/external/ (and all subsequent requests)
-> is still proxied to 127.0.0.1:8080, although rewrite_log shows it matches the /external rule


SCENARIO 2:

1. Restart Apache

2. Access http://www.domain.com/external/
-> is proxied to 192.168.100.66:8099 as expected

3. Access http://www.domain.com/external/ (and all subsequent requests)
-> is still proxied to 192.168.100.66:8099, although rewrite_log shows it matches the / rule

Btw, I don't have mod_proxy_balancer loaded.

-- 
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 39253] - Rewrite proxy requests being handled by wrong proxy

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


bjorn@exoweb.net changed:

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




------- Additional Comments From bjorn@exoweb.net  2006-04-08 20:42 -------
Yes, great!  With the patch applied I can no longer reproduce the problem.

Thanks a bunch!  What great service, on a Saturday! :)

-- 
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 39253] - Rewrite proxy requests being handled by wrong proxy

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





------- Additional Comments From rpluem@apache.org  2006-04-08 19:58 -------
Created an attachment (id=18045)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18045&action=view)
Patch against trunk

Could you please give the attached patch a try and have a look if it fixes your
problem?

-- 
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 39253] - Rewrite proxy requests being handled by wrong proxy

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





------- Additional Comments From rpluem@apache.org  2006-04-22 15:32 -------
Backported to 2.2.x as r393047 (http://svn.apache.org/viewcvs?rev=393047&view=rev).

-- 
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 39253] - Rewrite proxy requests being handled by wrong proxy

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


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ob@dorrboel.com




------- Additional Comments From nick@webthing.com  2006-06-09 10:36 -------
*** Bug 39763 has been marked as a duplicate of this 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 39253] - Rewrite proxy requests being handled by wrong proxy

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





------- Additional Comments From rpluem@apache.org  2006-04-09 11:30 -------
Patch committed to trunk as r392613
(http://svn.apache.org/viewcvs?rev=392613&view=rev) and proposed for backport
2.2.x as r392700 (http://svn.apache.org/viewcvs?rev=392700&view=rev)

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