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 39253] New: - Rewrite proxy requests being handled by wrong proxy
Date Sat, 08 Apr 2006 12:09:29 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=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


Mime
View raw message