From 60839ec01dadc655f3d0f64879492033301a60ee Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 26 Jun 2002 19:54:53 +0000 Subject: add another example filter, try to clarify how parameters to the filter program are specified git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95892 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_ext_filter.xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'docs/manual/mod/mod_ext_filter.xml') diff --git a/docs/manual/mod/mod_ext_filter.xml b/docs/manual/mod/mod_ext_filter.xml index 986eea8ec1..0899a29813 100644 --- a/docs/manual/mod/mod_ext_filter.xml +++ b/docs/manual/mod/mod_ext_filter.xml @@ -114,6 +114,24 @@ +
Using sed to replace text in the response + +
+  # mod_ext_filter directive to define a filter which replaces text in
+  # the response
+  ExtFilterDefine fixtext mode=output cmd="/bin/sed s/verdana/arial/g" intype=text/html
+
+  <Location />
+
+  # core directive to cause the fixtext filter to be run on output
+  # output
+  SetOutputFilter fixtext
+
+  </Location>
+
+
+
+ @@ -144,7 +162,9 @@
The cmd= keyword allows you to specify the external command to run. If there are arguments after the program name, the command line should be surrounded in - quotation marks.
+ quotation marks (e.g., cmd="/bin/mypgm arg1 arg2". + Normal shell quoting is not necessary since the program is + run directly, bypassing the shell.
mode=mode
-- cgit v1.2.1