Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using mod_sed on both in/out filtering on same site

Status
Not open for further replies.

henzen

IS-IT--Management
Jun 23, 2016
1
0
0
ZA
Hi,

Using Apache 2.4.

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/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/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
 
Hi

It works for me. Are you sure your test case is relevant ? What are you sending to the server, what are you receiving back and what are you expecting instead.


Feherke.
feherke.ga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top