is mod_ext_filter supposed to work with mod_proxy?
is mod_ext_filter supposed to work with mod_proxy?
am 19.10.2009 17:52:52 von 8p
Does anyone know if ext_filter should work when using apache as a
proxy? I'm trying to add some content to the html body of content
served by the proxy, but it doesn't seem to be working. Has anyone
tried this? I think that my configuration is correct, at least for the
locally hosted website because i see the additional content. Any help
would be greatly appreciated.
Configuration:
Apache/2.2.11
Ubuntu/2.6.28-11-server
Regards,
Marcos
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 19.10.2009 18:32:10 von Eric Covener
On Mon, Oct 19, 2009 at 11:52 AM, Marcos Mendez wrote:
> Does anyone know if ext_filter should work when using apache as a
> proxy? I'm trying to add some content to the html body of content
> served by the proxy, but it doesn't seem to be working. Has anyone
> tried this? I think that my configuration is correct, at least for the
> locally hosted website because i see the additional content. Any help
> would be greatly appreciated.
>
They should work fine together.
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 19.10.2009 18:39:24 von 8p
Hi Eric, thanks for the quick response. So then I must be doing
something wrong. Does this look right? I'm testing a simple filter
that rewrites some text. Through the proxy, this html
(http://skyblender.com/index.html) should show two "arial" instead of
just one.
--- proxy.conf ----
ExtFilterDefine my-filter mode=3Doutput intype=3Dtext/html cmd=3D"/bin/sed
s/verdana/arial/g"
ProxyRequests On
AddDefaultCharset off
Order allow,deny
Allow from all
SetOutputFilter my-filter
ProxyVia Off
On Mon, Oct 19, 2009 at 12:32 PM, Eric Covener wrote:
> On Mon, Oct 19, 2009 at 11:52 AM, Marcos Mendez =
wrote:
>> Does anyone know if ext_filter should work when using apache as a
>> proxy? I'm trying to add some content to the html body of content
>> served by the proxy, but it doesn't seem to be working. Has anyone
>> tried this? I think that my configuration is correct, at least for the
>> locally hosted website because i see the additional content. Any help
>> would be greatly appreciated.
>>
>
> They should work fine together.
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 19.10.2009 18:47:27 von Eric Covener
On Mon, Oct 19, 2009 at 12:39 PM, Marcos Mendez w=
rote:
> Hi Eric, thanks for the quick response. So then I must be doing
> something wrong. Does this look right? I'm testing a simple filter
> that rewrites some text. Through the proxy, this html
> (http://skyblender.com/index.html) should show two "arial" instead of
> just one.
>
> --- proxy.conf ----
>
> ExtFilterDefine my-filter mode=3Doutput intype=3Dtext/html cmd=3D"/bin/se=
d
> s/verdana/arial/g"
>
>
> =A0 =A0 =A0 ProxyRequests On
> =A0 =A0 =A0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 AddDefaultCharset off
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 SetOutputFilter my-filter
> =A0 =A0 =A0
> =A0 =A0 =A0 ProxyVia Off
>
No time to play with it here, but can you confirm that
SetOutputFilter works in a Proxy block? You can also turn on extra
extfilter debugging.
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 19.10.2009 23:54:39 von 8p
Hi Eric,
I did a full stop and start of apache instead of restart. It works! Thanks!
On Mon, Oct 19, 2009 at 12:47 PM, Eric Covener wrote:
> On Mon, Oct 19, 2009 at 12:39 PM, Marcos Mendez =
wrote:
>> Hi Eric, thanks for the quick response. So then I must be doing
>> something wrong. Does this look right? I'm testing a simple filter
>> that rewrites some text. Through the proxy, this html
>> (http://skyblender.com/index.html) should show two "arial" instead of
>> just one.
>>
>> --- proxy.conf ----
>>
>> ExtFilterDefine my-filter mode=3Doutput intype=3Dtext/html cmd=3D"/bin/s=
ed
>> s/verdana/arial/g"
>>
>>
>> =A0 =A0 =A0 ProxyRequests On
>> =A0 =A0 =A0
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 AddDefaultCharset off
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 SetOutputFilter my-filter
>> =A0 =A0 =A0
>> =A0 =A0 =A0 ProxyVia Off
>>
>
> No time to play with it here, but can you confirm that
> SetOutputFilter works in a Proxy block? =A0 =A0You can also turn on extra
> extfilter debugging.
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 20.10.2009 00:14:33 von 8p
Hi Eric,
Sorry. I mispoke. The filter is working, but it seems to be ignoring
the html content. I'm using intype=3Dtext/html.
Regards,
Marcos
On Mon, Oct 19, 2009 at 5:54 PM, Marcos Mendez wr=
ote:
> Hi Eric,
>
> I did a full stop and start of apache instead of restart. It works! Thank=
s!
>
> On Mon, Oct 19, 2009 at 12:47 PM, Eric Covener wrote:
>> On Mon, Oct 19, 2009 at 12:39 PM, Marcos Mendez
> wrote:
>>> Hi Eric, thanks for the quick response. So then I must be doing
>>> something wrong. Does this look right? I'm testing a simple filter
>>> that rewrites some text. Through the proxy, this html
>>> (http://skyblender.com/index.html) should show two "arial" instead of
>>> just one.
>>>
>>> --- proxy.conf ----
>>>
>>> ExtFilterDefine my-filter mode=3Doutput intype=3Dtext/html cmd=3D"/bin/=
sed
>>> s/verdana/arial/g"
>>>
>>>
>>> =A0 =A0 =A0 ProxyRequests On
>>> =A0 =A0 =A0
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 AddDefaultCharset off
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 SetOutputFilter my-filter
>>> =A0 =A0 =A0
>>> =A0 =A0 =A0 ProxyVia Off
>>>
>>
>> No time to play with it here, but can you confirm that
>> SetOutputFilter works in a Proxy block? =A0 =A0You can also turn on extr=
a
>> extfilter debugging.
>>
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Projec=
t.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: is mod_ext_filter supposed to work with mod_proxy?
am 20.10.2009 00:59:43 von 8p
Hi,
I had to create two filters, one for text/html and one for text/plain
and use SetOutputFilter for both. :)
Thanks!
On Mon, Oct 19, 2009 at 6:14 PM, Marcos Mendez wr=
ote:
> Hi Eric,
>
> Sorry. I mispoke. The filter is working, but it seems to be ignoring
> the html content. I'm using intype=3Dtext/html.
>
> Regards,
>
> Marcos
>
> On Mon, Oct 19, 2009 at 5:54 PM, Marcos Mendez =
wrote:
>> Hi Eric,
>>
>> I did a full stop and start of apache instead of restart. It works! Than=
ks!
>>
>> On Mon, Oct 19, 2009 at 12:47 PM, Eric Covener wrote=
:
>>> On Mon, Oct 19, 2009 at 12:39 PM, Marcos Mendez
m> wrote:
>>>> Hi Eric, thanks for the quick response. So then I must be doing
>>>> something wrong. Does this look right? I'm testing a simple filter
>>>> that rewrites some text. Through the proxy, this html
>>>> (http://skyblender.com/index.html) should show two "arial" instead of
>>>> just one.
>>>>
>>>> --- proxy.conf ----
>>>>
>>>> ExtFilterDefine my-filter mode=3Doutput intype=3Dtext/html cmd=3D"/bin=
/sed
>>>> s/verdana/arial/g"
>>>>
>>>>
>>>> =A0 =A0 =A0 ProxyRequests On
>>>> =A0 =A0 =A0
>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 AddDefaultCharset off
>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Order allow,deny
>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Allow from all
>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 SetOutputFilter my-filter
>>>> =A0 =A0 =A0
>>>> =A0 =A0 =A0 ProxyVia Off
>>>>
>>>
>>> No time to play with it here, but can you confirm that
>>> SetOutputFilter works in a Proxy block? =A0 =A0You can also turn on ext=
ra
>>> extfilter debugging.
>>>
>>>
>>> --
>>> Eric Covener
>>> covener@gmail.com
>>>
>>> ------------------------------------------------------------ ---------
>>> The official User-To-User support forum of the Apache HTTP Server Proje=
ct.
>>> See for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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