diff options
author | Ken Coar <coar@apache.org> | 1999-04-29 19:55:53 +0000 |
---|---|---|
committer | Ken Coar <coar@apache.org> | 1999-04-29 19:55:53 +0000 |
commit | d0bf4213d6e65207a4479e0a6ba38d6f6390f65b (patch) | |
tree | edf021044e9d62c6ad8a9b3727b8820af35f8145 | |
parent | 9a1f46f288cbc2e9d56916deaeab5f2f9fbcda86 (diff) | |
download | httpd-d0bf4213d6e65207a4479e0a6ba38d6f6390f65b.tar.gz |
Point out that for multiple AddLanguage directives with the
same extension, the last one encountered dominates. This is
true of lots of directives, but this is the one on which we
got a PR..
PR: 3570
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83135 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/mod/mod_mime.html | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index eb8e2be663..c222cab89b 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -226,34 +226,51 @@ multiple extensions</A> <A HREF="directive-dict.html#Module" REL="Help" -><STRONG>Module:</STRONG></A> mod_mime<P> +><STRONG>Module:</STRONG></A> mod_mime +<P> The AddLanguage directive maps the given filename extensions 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 same <EM>extension</EM>. - +</P> +<P> Example: <BLOCKQUOTE><CODE> AddEncoding x-compress Z<BR> AddLanguage en .en<BR> AddLanguage fr .fr<BR> </CODE></BLOCKQUOTE> - +</P> +<P> Then the document <CODE>xxxx.en.Z</CODE> will be treated as being a compressed English document (as will the document <CODE>xxxx.Z.en</CODE>). Although the content language is reported to the client, the browser is unlikely to use this information. The -AddLanguage directive is more useful for <A -HREF="../content-negotiation.html">content negotiation</A>, where +AddLanguage directive is more useful for +<A HREF="../content-negotiation.html">content negotiation</A>, where the server returns one from several documents based on the client's -language preference.<P> - +language preference. +</P> +<P> +If multiple language assignments are made for the same extension, +the last one encountered is the one that is used. That is, for the +case of: +</P> +<PRE> + AddLanguage en .en + AddLanguage en-uk .en + AddLanguage en-us .en +</PRE> +<P> +documents with the extension "<CODE>.en</CODE>" would be treated as +being "<CODE>en-us</CODE>". +</P> <P> - <STRONG>See also</STRONG>: <A HREF="#multipleext">Files with multiple extensions</A> <BR> <STRONG>See also</STRONG>: <A HREF="./mod_negotiation.html">mod_negotiation</A> +</P> <HR> |