From: pcs Date: Mon, 9 Jun 1997 14:46:04 +0000 (+0000) Subject: Update summary and syntax X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e75086ec9aad3c502e7b50f9d05ad08f08693388;p=thirdparty%2Fapache%2Fhttpd.git Update summary and syntax git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78275 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/APACHE_1_2_X/htdocs/manual/mod/mod_mime.html b/APACHE_1_2_X/htdocs/manual/mod/mod_mime.html index fa150c88e05..fd3e6b09df3 100644 --- a/APACHE_1_2_X/htdocs/manual/mod/mod_mime.html +++ b/APACHE_1_2_X/htdocs/manual/mod/mod_mime.html @@ -20,22 +20,44 @@ compiled in by default. It provides for determining the types of files from the filename.

Summary

-This module is used to determine the mime types of documents. Some mime -types indicate special processing to be performed by the server, otherwise -the type is returned to the client so that the browser can deal with -the document appropriately.

- -The filename of a document is treated as being composed of a basename followed -by some extensions, in the following order: -

base.type.language.enc
-The type extension sets the type of the document; types are defined -in the TypesConfig file and by the -AddType directive. The language extension -sets the language of the document, as defined by the -AddLanguage directive. Finally, the -enc directive sets the encoding of the document, as defined by -the AddEncoding directive. +This module is used to determine various bits of "meta information" +about documents. This information relates to the content of the +document and is returned to the browser or used in content-negotiation +within the server. In addition, a "handler" can be set for a document, +which determines how the document will be processed within the server. + +

+ +The directives AddEncoding, AddHandler, AddLanguage and AddType +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. + +

+ +Files can have more than one extension, and the order of the +extensions is normally irrelevant. For example, if the file +welcome.html.fr maps onto content type text/html and +language French then the file welcome.fr.html will map +onto exactly the same information. The only exception to this is if an +extension is given which Apache does not know how to handle. In this +case it will "forget" about any information it obtained from +extensions to the left of the unknown extension. So, for example, if +the extensions fr and html are mapped to the appropriate language and +type but extension xxx is not assigned to anything, then the file +welcome.fr.xxx.html will be associated with content-type +text/html but no language. + +

Directives