logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_sed use with both in/out filtering
Author
henzen



Joined: 23 Jun 2016
Posts: 1
Location: South Africa

PostPosted: Thu 23 Jun '16 13:39    Post subject: mod_sed use with both in/out filtering Reply with quote

Greets,

using Apache 2.4 on Linux.

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 css js pl cgi text
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 css js pl cgi text
InputSed "s/abc/123/g"
InputSed "s/ffuts/stuff/g"
</Location>

...but only the output filter is being used. In fact, if I switch on AddInputFilter while the AddOutputFilter is active, then neither work.

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

Thanks
Henry
Back to top


Reply to topic   Topic: mod_sed use with both in/out filtering View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules