From: Joshua Slive 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 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 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. 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. Once that has been put into your httpd.conf file, any file containing
the 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.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 @@
.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.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
, useConfigure handler based on final extension only
+ <FilesMatch \.cgi$>
+
+ SetHandler cgi-script
+
+ </FilesMatch>
+
Content encoding
@@ -262,8 +278,11 @@ charset
where the server returns one from several documents based on
the client's charset preference.
- See also
@@ -314,8 +333,10 @@ type
recent encodings, such as
deflate
should be
specified without the x-
.
- .cgi
extension will be treated as a CGI program.See also
@@ -374,11 +397,15 @@ 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.
+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.
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.
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.
The extension argument is case-insensitive, and can +
The extension argument is case-insensitive and can be specified with or without a leading dot.
@@ -726,7 +760,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.
@@ -760,7 +794,7 @@ extensions the/foo/bar
directory to being treated as normal
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.
@@ -785,7 +819,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.
The extension argument is case-insensitive, and can +
The extension argument is case-insensitive and can be specified with or without a leading dot.
@@ -839,7 +873,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.
@@ -885,7 +919,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.