From: Ken Coar Date: Wed, 2 Dec 1998 03:45:51 +0000 (+0000) Subject: Put in Paul's DefaultLanguage code. I don't recall seeing X-Git-Tag: 1.3.4~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b6422cedbeddb6fa5910739e3e5939a6298d83c;p=apache Put in Paul's DefaultLanguage code. I don't recall seeing any negative comments, and it's pretty valuable for multilingual sites. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82425 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index 391500ebb4..f7fd1af552 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -36,11 +36,11 @@ are all used to map file extensions onto the meta-information for that file. Respectively they set the content-encoding, handler, content-language and MIME-type (content-type) of documents. The directive TypesConfig is used to specify a -file which also maps extensions onto mime types. The directives ForceType and SetHandler are used to associated all the files in a given location (e.g., a particular directory) onto a particular -mime type or handler. +MIME type or handler.

@@ -90,6 +90,7 @@ mod_imap imagemap file.

  • AddHandler
  • AddLanguage
  • AddType +
  • DefaultLanguage
  • ForceType
  • SetHandler
  • TypesConfig @@ -121,7 +122,7 @@ mod_imap imagemap file. >Module: mod_mime

    The AddEncoding directive maps the given filename extensions to the -specified encoding type. Mime-enc is the mime encoding to use +specified encoding type. MIME-enc is the MIME encoding to use for documents containing the extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. @@ -227,7 +228,7 @@ multiple extensions >Module: mod_mime

    The AddLanguage directive maps the given filename extensions to the -specified content language. Mime-lang is the mime language of +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. @@ -275,18 +276,18 @@ multiple extensions >Module: mod_mime

    The AddType directive maps the given filename extensions onto the -specified content type. Mime-enc is the mime type to use for +specified content type. MIME-enc is the MIME type to use for filenames containing extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. This directive can be used to add mappings -not listed in the mime types file (see the TypesConfig directive). Example:

    AddType image/gif GIF
    -It is recommended that new mime types be added using the AddType directive +It is recommended that new MIME types be added using the AddType directive rather than changing the TypesConfig file.

    Note that, unlike the NCSA httpd, this directive cannot be used to set the type of particular files.

    @@ -298,6 +299,45 @@ multiple extensions


    +

    DefaultLanguage

    + +Syntax: DefaultLanguage MIME-lang
    +Context: server config, virtual host, directory, .htaccess
    +Override: FileInfo
    +Status: Base
    +Module: mod_mime

    + +The DefaultLanguage directive tells Apache that all files in the +directive's scope (e.g., all files covered by the current +<Directory> container) that don't have an explicit language +extension (such as .fr or .de) should be +considered to be the specified MIME-lang language +by default, rather than English. This allows entire directories +to be marked as containing Dutch content, for instance, without +having to rename each file. + +

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


    +

    ForceType

    Default: TypesConfig conf/mime.types
    +>Default: TypesConfig conf/MIME.types
    Module: mod_mime

    -The TypesConfig directive sets the location of the mime types configuration +The TypesConfig directive sets the location of the MIME types configuration file. Filename is relative to the ServerRoot. This file sets the default list of mappings from filename extensions to content types; changing this file is not