Loading docs/manual/mod/mod_mime.html +13 −66 Original line number Diff line number Diff line Loading @@ -44,17 +44,19 @@ which determines how the document will be processed within the server. <P> The directives <a href="#addcharset">AddCharset</a>, <A HREF="#addencoding">AddEncoding</A>, <A HREF="#addhandler">AddHandler</A>, <A HREF="#SetFilter">SetFilter</A>, <A HREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A> are all used to map file extensions onto the meta-information for that file. Respectively they set the character set, content-encoding, handler, content-language, and MIME-type (content-type) of documents. The directive <A HREF="#typesconfig">TypesConfig</A> is used to specify a file which also maps extensions onto MIME types. The directives <A HREF="#forcetype">ForceType</A> and <A HREF="#sethandler">SetHandler</A> are used to associated all the files in a given location (<EM>e.g.</EM>, a particular directory) onto a particular MIME type or handler. The directives <a href="#addcharset">AddCharset</a>, <A HREF="#addencoding">AddEncoding</A>, <A HREF="#addhandler">AddHandler</A>, <A HREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A> are all used to map file extensions onto the meta-information for that file. Respectively they set the character set, content-encoding, handler, content-language, and MIME-type (content-type) of documents. The directive <A HREF="#typesconfig">TypesConfig</A> is used to specify a file which also maps extensions onto MIME types. The directives <A HREF="#forcetype">ForceType</A> and <A HREF="#sethandler">SetHandler</A> are used to associated all the files in a given location (<EM>e.g.</EM>, a particular directory) onto a particular MIME type or handler. <P> Loading @@ -67,7 +69,6 @@ copies may still be used by a client or proxy, with the previous headers. <li><a href="#addcharset">AddCharset</a></li> <LI><A HREF="#addencoding">AddEncoding</A> <LI><A HREF="#addhandler">AddHandler</A> <LI><A HREF="#setfilter">SetFilter</A> <LI><A HREF="#addlanguage">AddLanguage</A> <LI><A HREF="#addtype">AddType</A> <LI><A HREF="#defaultlanguage">DefaultLanguage</A> Loading Loading @@ -358,60 +359,6 @@ HREF="./mod_negotiation.html">mod_negotiation</A> <HR> <H2><A NAME="setfilter">SetFilter</A> directive</H2> <!--%plaintext <?INDEX {\tt SetFilter} directive> --> <A HREF="directive-dict.html#Syntax" REL="Help" ><STRONG>Syntax:</STRONG></A> SetFilter <em>MIME-type filter</em> [<em>filter</em>] ...<br> <A HREF="directive-dict.html#Context" REL="Help" ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR> <A HREF="directive-dict.html#Override" REL="Help" ><STRONG>Override:</STRONG></A> FileInfo<BR> <A HREF="directive-dict.html#Status" REL="Help" ><STRONG>Status:</STRONG></A> Base<BR> <A HREF="directive-dict.html#Module" REL="Help" ><STRONG>Module:</STRONG></A> mod_mime <P> The SetFilter directive maps a filter stack to the specified MIME-type. </P> <P> Example: <BLOCKQUOTE><CODE> SetFilter server-parsed INCLUDES CACHE </CODE></BLOCKQUOTE> </P> <P> 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 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> SetFilter text/html INCLUDES </PRE> <P> documents with the extension "<CODE>.shtml</CODE>" would be passed through the INCLUDES filter. </P> <P> <HR> <H2><A NAME="addtype">AddType</A> directive</H2> <!--%plaintext <?INDEX {\tt AddType} directive> --> <A Loading Loading
docs/manual/mod/mod_mime.html +13 −66 Original line number Diff line number Diff line Loading @@ -44,17 +44,19 @@ which determines how the document will be processed within the server. <P> The directives <a href="#addcharset">AddCharset</a>, <A HREF="#addencoding">AddEncoding</A>, <A HREF="#addhandler">AddHandler</A>, <A HREF="#SetFilter">SetFilter</A>, <A HREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A> are all used to map file extensions onto the meta-information for that file. Respectively they set the character set, content-encoding, handler, content-language, and MIME-type (content-type) of documents. The directive <A HREF="#typesconfig">TypesConfig</A> is used to specify a file which also maps extensions onto MIME types. The directives <A HREF="#forcetype">ForceType</A> and <A HREF="#sethandler">SetHandler</A> are used to associated all the files in a given location (<EM>e.g.</EM>, a particular directory) onto a particular MIME type or handler. The directives <a href="#addcharset">AddCharset</a>, <A HREF="#addencoding">AddEncoding</A>, <A HREF="#addhandler">AddHandler</A>, <A HREF="#addlanguage">AddLanguage</A> and <A HREF="#addtype">AddType</A> are all used to map file extensions onto the meta-information for that file. Respectively they set the character set, content-encoding, handler, content-language, and MIME-type (content-type) of documents. The directive <A HREF="#typesconfig">TypesConfig</A> is used to specify a file which also maps extensions onto MIME types. The directives <A HREF="#forcetype">ForceType</A> and <A HREF="#sethandler">SetHandler</A> are used to associated all the files in a given location (<EM>e.g.</EM>, a particular directory) onto a particular MIME type or handler. <P> Loading @@ -67,7 +69,6 @@ copies may still be used by a client or proxy, with the previous headers. <li><a href="#addcharset">AddCharset</a></li> <LI><A HREF="#addencoding">AddEncoding</A> <LI><A HREF="#addhandler">AddHandler</A> <LI><A HREF="#setfilter">SetFilter</A> <LI><A HREF="#addlanguage">AddLanguage</A> <LI><A HREF="#addtype">AddType</A> <LI><A HREF="#defaultlanguage">DefaultLanguage</A> Loading Loading @@ -358,60 +359,6 @@ HREF="./mod_negotiation.html">mod_negotiation</A> <HR> <H2><A NAME="setfilter">SetFilter</A> directive</H2> <!--%plaintext <?INDEX {\tt SetFilter} directive> --> <A HREF="directive-dict.html#Syntax" REL="Help" ><STRONG>Syntax:</STRONG></A> SetFilter <em>MIME-type filter</em> [<em>filter</em>] ...<br> <A HREF="directive-dict.html#Context" REL="Help" ><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR> <A HREF="directive-dict.html#Override" REL="Help" ><STRONG>Override:</STRONG></A> FileInfo<BR> <A HREF="directive-dict.html#Status" REL="Help" ><STRONG>Status:</STRONG></A> Base<BR> <A HREF="directive-dict.html#Module" REL="Help" ><STRONG>Module:</STRONG></A> mod_mime <P> The SetFilter directive maps a filter stack to the specified MIME-type. </P> <P> Example: <BLOCKQUOTE><CODE> SetFilter server-parsed INCLUDES CACHE </CODE></BLOCKQUOTE> </P> <P> 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 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> SetFilter text/html INCLUDES </PRE> <P> documents with the extension "<CODE>.shtml</CODE>" would be passed through the INCLUDES filter. </P> <P> <HR> <H2><A NAME="addtype">AddType</A> directive</H2> <!--%plaintext <?INDEX {\tt AddType} directive> --> <A Loading