<A
HREF="directive-dict.html#Syntax"
REL="Help"
-><STRONG>Syntax:</STRONG></A> SetFilter <EM>Assign filters based on Handler...</EM><BR>
+><STRONG>Syntax:</STRONG></A> SetFilter <EM>Assign filters based on MIME-type...</EM><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Module:</STRONG></A> mod_mime
<P>
-The SetFilter directive maps a filter stack to the specified Handler.
+The SetFilter directive maps a filter stack to the specified MIME-type.
</P>
<P>
Example: <BLOCKQUOTE><CODE>
</CODE></BLOCKQUOTE>
</P>
<P>
-Then any document with the server-parsed Handler will pass through the
+Then any document with the server-parsed MIME-type will pass through the
INCLUDES and CACHE filters. The filters are added in the same order that
they are specified in the config file.
</P>
<P>
-This can be very powerful when combined with either the <A HREF="#addhandler">
-AddHandler</A> directives. This allows you to specify an extension for a
+This can be very powerful when combined with the <A HREF="#addtype">
+AddType</A> directive. This allows you to specify an extension for a
MIME-type and a set of filters for files with those extensions to be passed
through
</P>
<PRE>
-AddHandler server-parsed .shtml
-SetFilter server-parsed INCLUDES
+SetFilter text/html INCLUDES
</PRE>
<P>
documents with the extension "<CODE>.shtml</CODE>" would be passed through
mime_dir_config *conf =
(mime_dir_config *) ap_get_module_config(r->per_dir_config, &mime_module);
- apr_table_do(filter_chain, r, conf->filter_names, r->handler, NULL);
+ apr_table_do(filter_chain, r, conf->filter_names, r->content_type, NULL);
}
static void register_hooks(void)