slive 00/12/02 12:56:52
Modified: htdocs/manual/mod mod_mime.html Log: Set a new documentation policy: All file extension examples will include the leading dot. Also, mention in the directives that take extensions, that they are case-insensitive and can be specified with or without the dot. Revision Changes Path 1.44 +33 -5 httpd-docs-1.3/htdocs/manual/mod/mod_mime.html Index: mod_mime.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_mime.html,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -b -u -r1.43 -r1.44 --- mod_mime.html 2000/11/22 03:36:17 1.43 +++ mod_mime.html 2000/12/02 20:56:52 1.44 @@ -170,6 +170,10 @@ the server returns one from several documents based on the client's charset preference. </P> + +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <P> <STRONG>See also</STRONG>: <A HREF="mod_negotiation.html">mod_negotiation</A> </P> @@ -206,7 +210,9 @@ for the same <EM>extension</EM>. Example: -<BLOCKQUOTE><CODE> AddEncoding x-gzip gz<BR> AddEncoding x-compress Z +<BLOCKQUOTE><CODE> +AddEncoding x-gzip .gz<BR> +AddEncoding x-compress .Z </CODE></BLOCKQUOTE> This will cause filenames containing the .gz extension to be marked as @@ -225,6 +231,9 @@ for these two specific encodings. More recent encodings, such as <CODE>deflate</CODE> should be specified without the <CODE>x-</CODE>. +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <P> <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with @@ -268,13 +277,16 @@ For example, to activate CGI scripts with the file extension "<CODE>.cgi</CODE>", you might use: <PRE> - AddHandler cgi-script cgi + AddHandler cgi-script .cgi </PRE> <P>Once that has been put into your srm.conf or httpd.conf file, any file containing the "<CODE>.cgi</CODE>" extension will be treated as a CGI program.</P> +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <P> <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with @@ -306,7 +318,7 @@ ><STRONG>Module:</STRONG></A> mod_mime <P> -The AddLanguage directive maps the given filename extension tos the +The AddLanguage directive maps the given filename extension to the specified content language. <EM>MIME-lang</EM> is the MIME language of filenames containing <EM>extension</EM>. This mapping is added to any already in force, overriding any mappings that already exist for the @@ -316,7 +328,7 @@ Example: </p> <BLOCKQUOTE><CODE> -AddEncoding x-compress Z<BR> AddLanguage en .en<BR> AddLanguage fr +AddEncoding x-compress .Z<BR> AddLanguage en .en<BR> AddLanguage fr .fr<BR> </CODE></BLOCKQUOTE> <P> @@ -343,6 +355,10 @@ documents with the extension "<CODE>.en</CODE>" would be treated as being "<CODE>en-us</CODE>". </P> + +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <P> <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with multiple extensions</A> @@ -386,13 +402,16 @@ Example: <BLOCKQUOTE><CODE> -AddType image/gif GIF +AddType image/gif .gif </CODE></BLOCKQUOTE> It is recommended that new MIME types be added using the AddType directive rather than changing the <A HREF="#typesconfig">TypesConfig</A> file.<P> Note that, unlike the NCSA httpd, this directive cannot be used to set the type of particular files.<P> +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <P> <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with @@ -544,6 +563,9 @@ AddEncoding directives, so it is possible they may undo the effects of the latter if both occur within the same directory configuration. </p> +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <HR> <H2><A NAME="removehandler">RemoveHandler</A> directive</H2> @@ -589,6 +611,9 @@ files, rather than as candidates for parsing (see the <A HREF="mod_include.html"><SAMP>mod_include</SAMP></A> module). </P> +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <HR> <H2><A NAME="removetype">RemoveType</A> directive</H2> @@ -636,6 +661,9 @@ <code>AddType</code> directives, so it is possible they may undo the effects of the latter if both occur within the same directory configuration. </p> +<p>The <em>extension</em> argument is case-insensitive, and can +be specified with or without a leading dot.</p> + <HR> <H2><A NAME="sethandler">SetHandler</A> directive</H2>