From: Joshua Slive Date: Thu, 13 Sep 2007 15:45:48 +0000 (+0000) Subject: Be even more explicit about the multiple-extension issue. X-Git-Tag: 2.3.0~1420 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6123a4cf715771ddf93d4b198ddbb4c9538101;p=thirdparty%2Fapache%2Fhttpd.git Be even more explicit about the multiple-extension issue. PR: 43386 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@575337 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml index f0f8bc90e43..685615b19d1 100644 --- a/docs/manual/mod/mod_mime.xml +++ b/docs/manual/mod/mod_mime.xml @@ -104,7 +104,7 @@ module="mod_mime_magic">MimeMagicFile 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. If more than one extension is given which maps onto + information. If more than one extension is given that maps onto the same type of meta-information, then the one to the right will be used, except for languages and content encodings. For example, if .gif maps to the MIME-type @@ -122,7 +122,7 @@ module="mod_mime_magic">MimeMagicFile

Care should be taken when a file with multiple extensions gets associated with both a MIME-type and a handler. This will - usually result in the request being by the module associated + usually result in the request being handled by the module associated with the handler. For example, if the .imap extension is mapped to the handler imap-file (from mod_imagemap) and the .html extension is @@ -132,6 +132,22 @@ module="mod_mime_magic">MimeMagicFile When it is processed, the imap-file handler will be used, and so it will be treated as a mod_imagemap imagemap file.

+ +

If you would prefer only the last dot-separated part of the + filename to be mapped to a particular piece of meta-data, then do + not use the Add* directives. For example, if you wish + to have the file foo.html.cgi processed as a CGI + script, but not the file bar.cgi.html, then instead + of using AddHandler cgi-script .cgi, use

+ + Configure handler based on final extension only + <FilesMatch \.cgi$> + + SetHandler cgi-script + + </FilesMatch> + +
Content encoding @@ -260,8 +276,12 @@ charset where the server returns one from several documents based on the client's charset preference.

-

The extension argument is case-insensitive, and can - be specified with or without a leading dot.

+

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

+ mod_negotiation AddDefaultCharset @@ -309,8 +329,11 @@ type recent encodings, such as deflate should be specified without the x-.

-

The extension argument is case-insensitive, and can - be specified with or without a leading dot.

+

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

@@ -339,8 +362,11 @@ handler

Once that has been put into your httpd.conf file, any file containing the .cgi extension will be treated as a CGI program.

-

The extension argument is case-insensitive, and can - be specified with or without a leading dot.

+

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

SetHandler @@ -366,11 +392,16 @@ later. directive. This mapping is merged over any already in force, overriding any mappings that already exist for the same extension.

-

If more than one filter is specified, they must be separated +

If more than one filter is specified, they must be separated by semicolons in the order in which they should process the - content. Both the filter and extension arguments are - case-insensitive, and the extension may be specified with or - without a leading dot.

+ content. The filter is case-insensitive.

+ +

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

+ RemoveInputFilter SetInputFilter @@ -422,8 +453,11 @@ language

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

-

The extension argument is case-insensitive, and can - be specified with or without a leading dot.

+

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

mod_negotiation @@ -461,9 +495,13 @@ later.

If more than one filter is specified, they must be separated by semicolons in the order in which they should process the - content. Both the filter and extension arguments - are case-insensitive, and the extension may be specified with or - without a leading dot.

+ content. The filter argument is case-insensitive.

+ +

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

RemoveOutputFilter SetOutputFilter @@ -506,8 +544,11 @@ type TypesConfig file. -

The extension argument is case-insensitive, and can - be specified with or without a leading dot.

+

The extension argument is case-insensitive and can + be specified with or without a leading dot. Filenames may have multiple extensions and the + extension argument will be compared against each of + them.

DefaultType ForceType @@ -655,7 +696,7 @@ later. undo any associations inherited from parent directories or the server config files.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

Example @@ -702,7 +743,7 @@ extensions if both occur within the same directory configuration.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

@@ -737,7 +778,7 @@ extensions files, rather than as candidates for parsing (see the mod_include module).

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

@@ -762,7 +803,7 @@ later. undo any associations inherited from parent directories or the server config files.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

AddInputFilter @@ -788,7 +829,7 @@ later. any associations inherited from parent directories or the server config files.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

@@ -813,7 +854,7 @@ later. undo any associations inherited from parent directories or the server config files.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.

Example @@ -857,7 +898,7 @@ extensions latter if both occur within the same directory configuration.

-

The extension argument is case-insensitive, and can +

The extension argument is case-insensitive and can be specified with or without a leading dot.