Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

I recently played with mod_ext_filter.

Put details why this is easy, can call simple external program, it's an outbound filter.

Here's the terminal,

tpham@myra:/etc/apache2/mods-enabled$ sudo a2enmod
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default...
Which module(s) do you want to enable (wildcards ok)?
ext_filter
Enabling module ext_filter.
Run '/etc/init.d/apache2 restart' to activate new configuration!
tpham@myra:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
 ... waiting    ...done.

Right from their examples,

# mod_ext_filter directive to define a filter which
# replaces text in the response
#
ExtFilterDefine fixtext mode=output intype=text/html \
cmd="/bin/sed s/breakitdown.ca/myra.homeip.net/g"

<Location />
# core directive to cause the fixtext filter to
# be run on output
SetOutputFilter fixtext
</Location>

Location does not seem to work here. Trying LocationMatch. Directory does seem to work. And no success with jkmounted content.

However this has limitations. I stopped here and instead used the Substitute.

  • No labels