Re: [users@httpd] Reverse Proxy and SSI from Back-End Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 11/10/05, Joshua Slive <jslive@xxxxxxxxx> wrote:
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.
 
 
I have filed a Bug report (#37438).

 
Thanks,

DS
--
Devendra Singh
S-4/A-116, Shalimar Garden Ext-II
Sahibabad, Ghaziabad (UP) - 201005 INDIA
Ph# +91+11-2637495
Mobile# +91-9818342483

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux