mod_filters order
am 07.04.2010 14:31:10 von John--00032555795edfe38d0483a4bdc4
Content-Type: text/plain; charset=UTF-8
Hi,
I am using mod_filter on Apache httpd 2.2.15 to apply mod_include and
mod_Substitute filters to content.
I am setting an environment variable based on request_URI matches to apply
substitutions.
SetEnvIfNoCase Request_URI "\.html" tag=1
SetEnvIfNoCase Request_URI "\.htm" tag=1
SetEnvIfNoCase Request_URI "\/$" tag=1
This allows me to set tag=0 later on pages that I don't want to apply
mod_substitute to.
My filter settup is as follows:
FilterDeclare subst TRANSCODE
FilterProvider subst SUBSTITUTE env=tag $1
FilterProtocol subst "change=yes"
FilterProtocol subst "proxy=no"
My SSI rules are as follows
FilterDeclare SSI
FilterProvider SSI INCLUDES resp=Content-Type $text/html
"FilterChain SSI subst " works for some pages but I am losing content from
others. It is my understanding that I need to apply the substitute filter
before SSI because some of the content that I need to substitute may be in
include files.
My pages make heavy use of SSI includes and I want to apply the substitute
filter to content that has already been processed by SSI.
With "FilterChain subst SSI" Everything looks OK. And it actually looks like
the subst filter is being applied after the page has had all of it's
included compiled.
Can anyone help me understand why "FilterChain SSI subs" drops html from
some pages and why "FilterChain subst SSI" seems to actually apply the SSI
filter before the subst one?
Cheers,
John
--
_____________
John G. Moylan
--00032555795edfe38d0483a4bdc4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
pan class=3D"Apple-style-span" style=3D"font-family: arial, sans-serif; fon=
t-size: 13px; border-collapse: collapse; ">Hi,
g mod_filter on Apache httpd 2.2.15 to apply mod_include and mod_Substitute=
filters to content.
RI matches to apply substitutions.
Case Request_URI "\.html" tag=3D1
t_URI "\.htm" tag=3D1
apply mod_substitute to.
ollows:
r subst SUBSTITUTE env=3Dtag $1
change=3Dyes"
ot;
Declare SSI
/html
lterChain SSI subst "Â works for some pages but I am losing conten=
t from others. It is my understanding that I need to apply the=C2=
=A0substitute filter before SSI because some of the content that I nee=
d to substitute may be in include files.
pply the substitute filter to content that has already been processed by SS=
I.
ng looks OK. And it actually looks like the subst filter is being applied a=
fter the page has had all of it's included compiled.
FilterChain SSI subs" drops html from some pages and why "Fi=
lterChain subst SSI" seems to actually apply the SSI filter before the=
subst one?
--
___=
__________
John G. Moylan
--00032555795edfe38d0483a4bdc4--