On 11/9/05, Devendra Singh <[EMAIL PROTECTED]> 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.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to