httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Reverse Proxy and SSI from Back-End Apache
Date Thu, 10 Nov 2005 00:07:25 GMT
On 11/9/05, Devendra Singh <dee.ess@gmail.com> 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message