Using mod_sed on both in/out filtering on same site

Discussion in 'Apache' started by Henry Combrinck, Jun 23, 2016.

  1. #1
    Hi,

    I'm trying to use mod_sed with both input and output filters at the same time. I can only get the output filter on it's own to work:

    <Location "/var/www">
    AddOutputFilter Sed html
    OutputSed "s/123/abc/g"
    OutputSed "s/stuff/ffuts/g"
    </Location>

    I'd like to use an input filter too on the same site:

    <Location "/var/www">
    AddInputFilter Sed html
    InputSed "s/abc/123/g"
    InputSed "s/ffuts/stuff/g"
    </Location>

    ...but only the output filter is being used. In fact, if I activate the input filter, it disables the output filter, so nothing then works.

    I'd appreciate any pointers in getting this to work.

    Thanks
    Henry
     
    Henry Combrinck, Jun 23, 2016 IP