Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_sed use with both in/out filtering |
|
Author |
|
henzen
Joined: 23 Jun 2016 Posts: 1 Location: South Africa
|
Posted: Thu 23 Jun '16 13:39 Post subject: mod_sed use with both in/out filtering |
|
|
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 |
|
|
|
|
|
|