The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Using mod_sed on both in/out filtering on same site  (Read 1517 times)

henzen

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Using mod_sed on both in/out filtering on same site
« on: June 23, 2016, 06:46:47 PM »

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
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 839
Re: Using mod_sed on both in/out filtering on same site
« Reply #1 on: June 23, 2016, 08:53:10 PM »

It seems that I tried using mod_sed and ran into the same problem as you. I never found a solution and at sometime just tried other things to get to where I need to go. Unfortunately I do not remember what I was trying to do but I seem to remember I was able to get something usable with mod_substitute instead.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13