From d0bf4213d6e65207a4479e0a6ba38d6f6390f65b Mon Sep 17 00:00:00 2001 From: Ken Coar Date: Thu, 29 Apr 1999 19:55:53 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_mime.html | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index eb8e2be663c..c222cab89ba 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -226,34 +226,51 @@ multiple extensions Module: mod_mime

+>Module: mod_mime +

The AddLanguage directive maps the given filename extensions to the specified content language. MIME-lang is the MIME language of filenames containing extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. - +

+

Example:

AddEncoding x-compress Z
AddLanguage en .en
AddLanguage fr .fr
- +

+

Then the document xxxx.en.Z will be treated as being a compressed English document (as will the document xxxx.Z.en). Although the content language is reported to the client, the browser is unlikely to use this information. The -AddLanguage directive is more useful for content negotiation, where +AddLanguage directive is more useful for +content negotiation, where the server returns one from several documents based on the client's -language preference.

- +language preference. +

+

+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: +

+
+    AddLanguage en .en
+    AddLanguage en-uk .en
+    AddLanguage en-us .en
+
+

+documents with the extension ".en" would be treated as +being "en-us". +

- See also: Files with multiple extensions
See also: mod_negotiation +


-- 2.47.3