httpd
knows the usual file types. The
following configuration directives can be
used to add new suffix bindings and override existing defaults:
AddType
- Filename suffix mappings to MIME Content-Types
AddEncoding
- Filename suffix mappings to MIME Content-Encodings
AddLanguage
- Multilanguage support, suffix mappings to different Content-Languages
SuffixCaseSense
- Set suffix case sensitivity
The syntax is:
AddType .suffix representation encoding [quality]The parameters are as follows:
*.*
matches to all files which have not been matched by
any explicit suffixes but do contain a dot. *
by itself
matches to any file which does not match any other suffix.
xxx.*
which differ in their
suffix only, when a link to xxx.multi
is being resolved.
Defaults to 1.0.
AddType .html text/html 8bit 1.0 AddType .text text/plain 7bit 0.9 AddType .ps application/postscript 8bit 1.0 AddType *.* application/binary binary 0.1 AddType * text/plain 7bit
AddType
was previously called Suffix.
The
old name is still understood, but may be misleading since suffixes are
also used to determine Content-Encoding and language. Always use
AddType
instead.
.Z
suffix for x-compressed
, for
example). Syntax is:
AddEncoding .suffix encoding
AddEncoding .Z x-compress
AddLanguage
rule (.en
suffix for English,
for example). Syntax is:
AddLanguage .suffix encoding
AddLanguage .en en AddLanguage .uk en_UK
SuffixCaseSense
directive:
SuffixCaseSense On