From: Joshua Slive Date: Wed, 29 Nov 2000 04:29:11 +0000 (+0000) Subject: Bring mod_ext_filter.html up to the new format. X-Git-Tag: moving_to_httpd_module~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b44c7682880bc087915b3483b5c4ba63615383c7;p=apache Bring mod_ext_filter.html up to the new format. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87123 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_ext_filter.html b/docs/manual/mod/mod_ext_filter.html index 0886782352..43ee39d155 100644 --- a/docs/manual/mod/mod_ext_filter.html +++ b/docs/manual/mod/mod_ext_filter.html @@ -14,12 +14,24 @@

Module mod_ext_filter

-

- This module is contained in the mod_ext_filter.c file, with - Apache 2.0 and later. It provides the ability to pass the response body - through an external program before delivering to the client. - mod_ext_filter is not compiled into the server by default. -

+

This module provides the ability to pass the response body + through an external program before delivering to the client.

+ +

Status: Experimental +
+Source File: mod_ext_filter.c +
+Module Identifier: ext_filter_module

+

Summary

@@ -59,6 +71,67 @@ + +

Examples

+ +

Generating HTML from some other type of response

+ +
+    # mod_ext_filter directive to define a filter to HTML-ize text/c files 
+    # using the external program /usr/bin/enscript, with the type of the 
+    # result set to text/html
+    ExtFilterDefine c-to-html mode=output intype=text/c outtype=text/html \
+                    cmd="/usr/bin/enscript --color -W html -Ec -o - -"
+
+    <Directory "/export/home/trawick/apacheinst/htdocs/c">
+
+    # core directive to cause the new filter to be run on output
+    AddOutputFilter c-to-heml
+
+    # mod_mime directive to set the type of .c files to text/c
+    AddType text/c .c
+
+    # mod_ext_filter directive to set the debug level just high 
+    # enough to see a log message per request showing the configuration
+    # in force
+    ExtFilterOptions DebugLevel=1
+
+    </Directory>
+  
+ +

Implementing a content encoding filter

+ +
+  # mod_ext_filter directive to define the external filter
+  ExtFilterDefine gzip mode=output cmd=/bin/gzip
+
+  <Location /gzipped>
+
+  # core directive to cause the gzip filter to be run on output
+  AddOutputFilter gzip
+
+  # mod_header directive to add "Content-Encoding: gzip" header field
+  Header set Content-Encoding gzip
+
+  </Location>
+  
+ +

Slowing down the server

+
+  # mod_ext_filter directive to define a filter which runs everything 
+  # through cat; cat doesn't modify anything; it just introduces extra
+  # pathlength and consumes more resources
+  ExtFilterDefine slowdown mode=output cmd=/bin/cat preservescontentlength
+
+  <Location />
+
+  # core directive to cause the slowdown filter to be run several times on 
+  # output
+  AddOutputFilter slowdown slowdown slowdown
+
+  </Location>
+  
+

ExtFilterDefine

@@ -92,11 +165,6 @@ HREF="directive-dict.html#Module" REL="Help" >Module: mod_ext_filter -
- Compatibility: Only available in Apache 2.0 or later

The ExtFilterDefine directive defines the characteristics of @@ -148,6 +216,8 @@ length, this keyword should be specified. +


+

ExtFilterOptions

Module: mod_ext_filter -
- Compatibility: Only available in Apache 2.0 or later

The ExtFilterOptions directive specifies special processing @@ -221,66 +286,6 @@

-

Examples

- -

Generating HTML from some other type of response

- -
-    # mod_ext_filter directive to define a filter to HTML-ize text/c files 
-    # using the external program /usr/bin/enscript, with the type of the 
-    # result set to text/html
-    ExtFilterDefine c-to-html mode=output intype=text/c outtype=text/html \
-                    cmd="/usr/bin/enscript --color -W html -Ec -o - -"
-
-    <Directory "/export/home/trawick/apacheinst/htdocs/c">
-
-    # core directive to cause the new filter to be run on output
-    AddOutputFilter c-to-heml
-
-    # mod_mime directive to set the type of .c files to text/c
-    AddType text/c .c
-
-    # mod_ext_filter directive to set the debug level just high 
-    # enough to see a log message per request showing the configuration
-    # in force
-    ExtFilterOptions DebugLevel=1
-
-    </Directory>
-  
- -

Implementing a content encoding filter

- -
-  # mod_ext_filter directive to define the external filter
-  ExtFilterDefine gzip mode=output cmd=/bin/gzip
-
-  <Location /gzipped>
-
-  # core directive to cause the gzip filter to be run on output
-  AddOutputFilter gzip
-
-  # mod_header directive to add "Content-Encoding: gzip" header field
-  Header set Content-Encoding gzip
-
-  </Location>
-  
- -

Slowing down the server

-
-  # mod_ext_filter directive to define a filter which runs everything 
-  # through cat; cat doesn't modify anything; it just introduces extra
-  # pathlength and consumes more resources
-  ExtFilterDefine slowdown mode=output cmd=/bin/cat preservescontentlength
-
-  <Location />
-
-  # core directive to cause the slowdown filter to be run several times on 
-  # output
-  AddOutputFilter slowdown slowdown slowdown
-
-  </Location>
-  
-