[Melbourne-pm] Apache2::Filter::RE

Toby Corkindale toby.corkindale at rea-group.com
Sun Feb 10 15:54:05 PST 2008

Scott Penrose wrote:
> On 10/02/2008, at 5:24 PM, deepfryed at gmail.com wrote:
>> mod_ext_filter allows you to do something similar using an external
>> program, Apache::StrReplace does something very similar with a
>> perloutputfilterhandler
> External is too slow for production.
> Apache::StrReplace only allows a single Reg Ex.

If performance is an issue, why not fix the problem at the source?
ie. Edit your HTML on-disk..

Failing that, I suggest using mod_rewrite or a custom 404 handler. In 
either case, you detect that the URL looks like one that should be on 
the other server, and redirect them over there.

Lastly, if you're definitely going to filter every page, then I hope 
you're using a reverse-proxy to cache the results?


More information about the Melbourne-pm mailing list