pcs 97/06/07 05:53:02 Modified: htdocs/manual/mod mod_mime.html Log: Update the summary part of mod_mime documentation to: - not state that extensions must be given in a particular order - mention assigning of handlers and use of info in content-negotiation - mention effect of 'unknown' extensions Revision Changes Path 1.13 +37 -15 apache/htdocs/manual/mod/mod_mime.html Index: mod_mime.html =================================================================== RCS file: /export/home/cvs/apache/htdocs/manual/mod/mod_mime.html,v retrieving revision 1.12 retrieving revision 1.13 diff -C3 -r1.12 -r1.13 *** mod_mime.html 1997/06/07 12:27:50 1.12 --- mod_mime.html 1997/06/07 12:53:01 1.13 *************** *** 20,41 **** from the filename.
- - 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.
+ + 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.