From docs-return-3922-apmail-httpd-docs-archive=httpd.apache.org@httpd.apache.org Sun Sep 15 00:07:11 2002 Return-Path: Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 18860 invoked by uid 500); 15 Sep 2002 00:07:11 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@httpd.apache.org Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 18836 invoked from network); 15 Sep 2002 00:07:10 -0000 Date: Sun, 15 Sep 2002 02:08:45 +0200 From: =?ISO-8859-1?Q?Andr=E9?= Malo X-Mailer: The Bat! (v1.60) Business X-Priority: 3 (Normal) Message-ID: <1784839779.20020915020845@perlig.de> To: docs@httpd.apache.org CC: dev@httpd.apache.org Subject: Review: AddOutputFilterByType (was: no doc for MaxMemFree or AddOutputFilterByType) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------A05B22F3DFE5C88" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------------A05B22F3DFE5C88 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable * Jeff Trawick wrote: > What about AddOutputFilterByType? Is that working properly now? It works at least for me (win32, 2.0.40 tested). I've attached a patch for core.xml that should match the current HEAD (of core.c). Please review and feel free to correct the English if neccessary ;-) The patch was reviewed and discussed before with Kess. nd --=20 die (eval q-qq:Just Another Perl Hacker :-) # Andr=E9 Malo, # ------------A05B22F3DFE5C88 Content-Type: text/plain; name="core.xml.diff"; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="core.xml.diff" Index: core.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/cvs/httpd-2.0/docs/manual/mod/core.xml,v retrieving revision 1.27 diff -u -r1.27 core.xml --- core.xml=095 Sep 2002 02:34:38 -0000=091.27 +++ core.xml=0914 Sep 2002 23:52:06 -0000 @@ -143,6 +143,70 @@ =20 +AddOutputFilterByType +assigns an output filter to a particular MIME-type +AddOutputFilterByType filter MIME-type +[MIME-type] ... +server config +virtual hostdirectory +.htaccess +FileInfo +Available in Apache 2.0.33 and later + + +

This directive activates a particular output filter for a request depending on the +response MIME-type.

+ +

The following example uses the DEFLATE filter, which is provided by +mod_deflate. It will compress all output (either static +or dynamic) which is labeled as text/html or +text/plain before it is sent to the client.

+ + + AddOutputFilterByType DEFLATE text/html text/plain + + +

If you want the content to be processed by more than one filter, you +have to use one AddOutputFilterByType +directive for each of them. Filters of the same type are processed in +reversed order they appear in your configuration, +but see also in which order +configuration sections are merged.

+ +

If the filters are of different types, the order in which they are +applied is dependant on the type. For example, the INCLUDES filter +is typed as AP_FTYPE_RESOURCE and the DEFLATE filter as +AP_FTYPE_CONTENT_SET. Since the latter is always processed +after AP_FTYPE_RESOURCE, the DEFLATE filter will always +be processed after INCLUDES.

+ +

Thus the configuration below causes all script output labeled as +text/html to be processed at first by the INCLUDES filter +and then by the DEFLATE filter.

+ + +
+<Location /cgi-bin/>
+  Options Includes
+  AddOutputFilterByType INCLUDES text/html
+  AddOutputFilterByType DEFLATE  text/html
+</Location>
+
+
+ +

Note: The output filters are not applied on proxy requ= ests.

+
+
+ +AddOutputFilter +SetOutputFilter +mod_include +mod_deflate +The filters documentation +
+ + AllowOverride Types of directives that are allowed in .htaccess files ------------A05B22F3DFE5C88 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org ------------A05B22F3DFE5C88--