...
Looking around I found the substitue directive.
sudo a2enmod substitute
Code Block | ||
---|---|---|
| ||
<Location /wiki/> AddOutputFilterByType SUBSTITUTE text/html Substitute s/www.breakitdown.ca/www.supernaturalz.com/ni </Location> |
...
Have not measured the performance hit yet.
substitute with mod_filter
Just noticed that AddOutputFilterByType is deprecated and it is recommended to use mod_filter. So enable it using a2enmod filter.
...
Note |
---|
The resp=Content-Type part does not quite sit well with me as the start does not indicae indicate a regular expression match and then it uses the $ symbol. However, the above exact syntax is used on the Apache documents as an example so I will leave this for now. 2.3 changes the syntax anyway. |
References
http://brian.moonspot.net/mod-substitute-mod-proxy-problem - working example of multiple filters and the syntax is slightly different