From: Joshua Slive Date: Thu, 13 Sep 2007 15:46:13 +0000 (+0000) Subject: Transform to html. X-Git-Tag: 2.3.0~1419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53ff938806448a8840a33c91ad4e4053c96c29a2;p=thirdparty%2Fapache%2Fhttpd.git Transform to html. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@575338 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.html.en b/docs/manual/mod/mod_mime.html.en index 4af756de3f9..ff8402d4b96 100644 --- a/docs/manual/mod/mod_mime.html.en +++ b/docs/manual/mod/mod_mime.html.en @@ -116,7 +116,7 @@ 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 @@ -133,7 +133,7 @@

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 @@ -143,6 +143,22 @@ 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> +

+
top

Content encoding

@@ -262,8 +278,11 @@ 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.

+

See also

top
@@ -344,8 +365,10 @@ 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.

See also