]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_filter: Document AddOutputFilterByType limitation with user-defined filters ...
authorRich Bowen <rbowen@apache.org>
Sun, 3 May 2026 17:26:24 +0000 (17:26 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 3 May 2026 17:26:24 +0000 (17:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933776 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_filter.xml

index d41680d7290377542744df8e8a517c7755baae3d..5aaae27c9fbbba0a04e7245fd4c04611b46c83fa 100644 (file)
@@ -314,6 +314,19 @@ AddOutputFilterByType DEFLATE text/html text/plain
 &lt;/VirtualHost&gt;
     </highlight>
 
+    <note type="warning"><title>Limitation with user-defined filters</title>
+    <p><directive>AddOutputFilterByType</directive> works with standard
+        compiled-in filters such as <code>DEFLATE</code> and
+        <code>INCLUDES</code>, but does not work with filters that look
+        up their configuration by filter name, such as those defined by
+        <module>mod_ext_filter</module> or <module>mod_lua</module>'s
+        <code>LuaOutputFilter</code>. This is because internally the
+        filter name is modified with a <code>BYTYPE:</code> prefix.
+        For user-defined filters, use
+        <directive>FilterDeclare</directive> and
+        <directive>FilterProvider</directive> with an expression
+        matching on <code>%{CONTENT_TYPE}</code> instead.</p></note>
+
 </usage>
 
 <seealso><directive module="mod_mime">AddOutputFilter</directive></seealso>