On 11/9/05, Devendra Singh <dee.ess@xxxxxxxxx> wrote:
> I checked the modules/mappers/mod_rewrite.c and found the following around
> line 1828 (httpd-2.0.55):
>
> /*
> * 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 my opinion (of limited knowledge of Apache internals) the line with
> "RULEFLAG_PROXY" may be the culprit. I commented the line:
>
> /* p->flags & RULEFLAG_PROXY || */
>
> and recompiled the Front Apache. Voila, now its giving the desired effect of
> rewriterule on subrequest via SSI.
>
> I would like to seek opinion of the expert list members / developers,
> whether this modification is okay and would it have any bad impact somewhere
> else?
I don't think I'd call myself a mod_rewrite expert (in fact, you'd
need to be a little insane to claim such a thing), but I see no
problem with removing that check. You might want to file a bug report
to have it removed permanently.
Joshua.