You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/12/22 22:54:55 UTC
svn commit: r1222473 - /httpd/httpd/trunk/docs/manual/mod/mod_mime.xml
Author: minfrin
Date: Thu Dec 22 21:54:55 2011
New Revision: 1222473
URL: http://svn.apache.org/viewvc?rev=1222473&view=rev
Log:
Clarify how the filters are merged when defined using the AddOuputFilter
directive.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_mime.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_mime.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_mime.xml?rev=1222473&r1=1222472&r2=1222473&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_mime.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_mime.xml Thu Dec 22 21:54:55 2011
@@ -507,6 +507,41 @@ later.</compatibility>
href="#multipleext">multiple extensions</a> and the
<var>extension</var> argument will be compared against each of
them.</p>
+
+ <p>Note that when defining a set of filters using the
+ <directive module="mod_mime">AddOuputFilter</directive> directive,
+ any definition made will replace any previous definition made by
+ the <directive module="mod_mime">AddOuputFilter</directive>
+ directive.</p>
+
+ <example>
+ # Effective filter "DEFLATE"<br />
+ AddOutputFilter DEFLATE shtml<br />
+ <Location /foo><br />
+ <indent>
+ # Effective filter "INCLUDES", replacing "DEFLATE"<br />
+ AddOutputFilter INCLUDES shtml<br />
+ </indent>
+ </Location><br />
+ <Location /bar><br />
+ <indent>
+ # Effective filter "INCLUDES;DEFLATE", replacing "DEFLATE"<br />
+ AddOutputFilter INCLUDES;DEFLATE shtml<br />
+ </indent>
+ </Location><br />
+ <Location /bar/baz><br />
+ <indent>
+ # Effective filter "BUFFER", replacing "INCLUDES;DEFLATE"<br />
+ AddOutputFilter BUFFER shtml<br />
+ </indent>
+ </Location><br />
+ <Location /bar/baz/buz><br />
+ <indent>
+ # No effective filter, replacing "BUFFER"<br />
+ RemoveOutputFilter shtml<br />
+ </indent>
+ </Location>
+ </example>
</usage>
<seealso><directive module="mod_mime">RemoveOutputFilter</directive></seealso>
<seealso><directive module="core">SetOutputFilter</directive></seealso>