From 24a80b229138690c7c6fee9c3987f6bea739837b Mon Sep 17 00:00:00 2001
From: Graham Leggett
Date: Thu, 22 Dec 2011 21:58:54 +0000
Subject: [PATCH] Backport: Clarify how the filters are merged when defined
using the AddOuputFilter directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1222477 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_mime.xml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml
index 7edfe134fe..4a65ed213b 100644
--- a/docs/manual/mod/mod_mime.xml
+++ b/docs/manual/mod/mod_mime.xml
@@ -507,6 +507,41 @@ later.
href="#multipleext">multiple extensions and the
extension argument will be compared against each of
them.
+
+ Note that when defining a set of filters using the
+ AddOuputFilter directive,
+ any definition made will replace any previous definition made by
+ the AddOuputFilter
+ directive.
+
+
+ # Effective filter "DEFLATE"
+ AddOutputFilter DEFLATE shtml
+ <Location /foo>
+
+ # Effective filter "INCLUDES", replacing "DEFLATE"
+ AddOutputFilter INCLUDES shtml
+
+ </Location>
+ <Location /bar>
+
+ # Effective filter "INCLUDES;DEFLATE", replacing "DEFLATE"
+ AddOutputFilter INCLUDES;DEFLATE shtml
+
+ </Location>
+ <Location /bar/baz>
+
+ # Effective filter "BUFFER", replacing "INCLUDES;DEFLATE"
+ AddOutputFilter BUFFER shtml
+
+ </Location>
+ <Location /bar/baz/buz>
+
+ # No effective filter, replacing "BUFFER"
+ RemoveOutputFilter shtml
+
+ </Location>
+
RemoveOutputFilter
SetOutputFilter
--
2.40.0