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 2002/11/18 20:48:59 UTC
DO NOT REPLY [Bug 14648] New: -
mod_rewrite does not proxy included requests
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14648>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14648
mod_rewrite does not proxy included requests
Summary: mod_rewrite does not proxy included requests
Product: Apache httpd-1.3
Version: 1.3.27
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: alex-apache@gossamer-threads.com
This is a duplicate of PR2074, PR5338, PR6804 and possibly others I couldn't
find in bugzilla.
Basically the problem is, if you have:
ProxyPass /foo http://newserver/foo
ProxyPassReverse /foo http://newserver/foo
Then an SSI of:
<!--#include virtual="/foo/bar"-->
_will_ be proxied. If instead of ProxyPass you use:
RewriteRule /foo(.*) http://newserver/foo$1 [P]
then the above SSI is _not proxied_. This is because of:
/*
* Ignore this rule on subrequests if we are explicitly
* asked to do so or this is a proxy-throughput or a
* forced redirect rule.
*/
if (r->main != NULL &&
(p->flags & RULEFLAG_IGNOREONSUBREQ ||
p->flags & RULEFLAG_PROXY ||
p->flags & RULEFLAG_FORCEREDIRECT )) {
continue;
}
in mod_rewrite. If you comment out the RULEFLAG_PROXY, it works as expected.
I'm not sure of the consequences this has. Can anyone comment on the reasoning
behind this?
I believe this also applies to httpd-2.0, but I haven't actually compiled it
yet.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org