Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Just noticed that AddOutputFilterByType is deprecated and it is recommended to use mod_filter. So enable it using a2enmod filter.

Note

Note this is Apache 2.2 syntax. Apache 2.3 has a new style of syntax.

Code Block
langhtml
<Location /wiki/>
    FilterDeclare filter_string_replace
    FilterProvider filter_string_replace SUBSTITUTE resp=Content-Type $text/
    Substitute "s/www.breakitdown.ca/www.myrapham.com/ni"
    Substitute "s/Break It Down/www.myrapham.com/n"
    FilterChain filter_string_replace
</Location>

...

Note

The resp=Content-Type part does not quite sit well with me as the start does not indicae a regular expression match and then it uses the $ symbol.

 

References

http://brian.moonspot.net/mod-substitute-mod-proxy-problem - working example of multiple filters and the syntax is slightly different