mime.conf 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. #
  2. # TypesConfig points to the file containing the list of mappings from
  3. # filename extension to MIME-type.
  4. #
  5. TypesConfig /etc/mime.types
  6. #
  7. # AddType allows you to add to or override the MIME configuration
  8. # file mime.types for specific file types.
  9. #
  10. #AddType application/x-gzip .tgz
  11. #
  12. # AddEncoding allows you to have certain browsers uncompress
  13. # information on the fly. Note: Not all browsers support this.
  14. # Despite the name similarity, the following Add* directives have
  15. # nothing to do with the FancyIndexing customization directives above.
  16. #
  17. #AddEncoding x-compress .Z
  18. #AddEncoding x-gzip .gz .tgz
  19. #AddEncoding x-bzip2 .bz2
  20. #
  21. # If the AddEncoding directives above are commented-out, then you
  22. # probably should define those extensions to indicate media types:
  23. #
  24. AddType application/x-compress .Z
  25. AddType application/x-gzip .gz .tgz
  26. AddType application/x-bzip2 .bz2
  27. #
  28. # DefaultLanguage and AddLanguage allows you to specify the language of
  29. # a document. You can then use content negotiation to give a browser a
  30. # file in a language the user can understand.
  31. #
  32. # Specify a default language. This means that all data
  33. # going out without a specific language tag (see below) will
  34. # be marked with this one. You probably do NOT want to set
  35. # this unless you are sure it is correct for all cases.
  36. #
  37. # * It is generally better to not mark a page as
  38. # * being a certain language than marking it with the wrong
  39. # * language!
  40. #
  41. # DefaultLanguage nl
  42. #
  43. # Note 1: The suffix does not have to be the same as the language
  44. # keyword --- those with documents in Polish (whose net-standard
  45. # language code is pl) may wish to use "AddLanguage pl .po" to
  46. # avoid the ambiguity with the common suffix for perl scripts.
  47. #
  48. # Note 2: The example entries below illustrate that in some cases
  49. # the two character 'Language' abbreviation is not identical to
  50. # the two character 'Country' code for its country,
  51. # E.g. 'Danmark/dk' versus 'Danish/da'.
  52. #
  53. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  54. # specifier. There is 'work in progress' to fix this and get
  55. # the reference data for rfc1766 cleaned up.
  56. #
  57. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  58. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  59. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  60. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  61. # Norwegian (no) - Polish (pl) - Portugese (pt)
  62. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  63. # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
  64. #
  65. AddLanguage am .amh
  66. AddLanguage ar .ara
  67. AddLanguage be .be
  68. AddLanguage bg .bg
  69. AddLanguage bn .bn
  70. AddLanguage br .br
  71. AddLanguage bs .bs
  72. AddLanguage ca .ca
  73. AddLanguage cs .cz .cs
  74. AddLanguage cy .cy
  75. AddLanguage da .da
  76. AddLanguage da .dk
  77. AddLanguage de .de
  78. AddLanguage dz .dz
  79. AddLanguage el .el
  80. AddLanguage en .en
  81. AddLanguage eo .eo
  82. # es is ecmascript in /etc/mime.types
  83. RemoveType es
  84. AddLanguage es .es
  85. AddLanguage et .et
  86. AddLanguage eu .eu
  87. AddLanguage fa .fa
  88. AddLanguage fi .fi
  89. AddLanguage fr .fr
  90. AddLanguage ga .ga
  91. AddLanguage gl .glg
  92. AddLanguage gu .gu
  93. AddLanguage he .he
  94. AddLanguage hi .hi
  95. AddLanguage hr .hr
  96. AddLanguage hu .hu
  97. AddLanguage hy .hy
  98. AddLanguage id .id
  99. AddLanguage is .is
  100. AddLanguage it .it
  101. AddLanguage ja .ja
  102. AddLanguage ka .ka
  103. AddLanguage kk .kk
  104. AddLanguage km .km
  105. AddLanguage kn .kn
  106. AddLanguage ko .ko
  107. AddLanguage ku .ku
  108. AddLanguage lo .lo
  109. AddLanguage lt .lt
  110. AddLanguage ltz .ltz
  111. AddLanguage lv .lv
  112. AddLanguage mg .mg
  113. AddLanguage mk .mk
  114. AddLanguage ml .ml
  115. AddLanguage mr .mr
  116. AddLanguage ms .msa
  117. AddLanguage nb .nob
  118. AddLanguage ne .ne
  119. AddLanguage nl .nl
  120. AddLanguage nn .nn
  121. AddLanguage no .no
  122. AddLanguage pa .pa
  123. AddLanguage pl .po
  124. AddLanguage pt-BR .pt-br
  125. AddLanguage pt .pt
  126. AddLanguage ro .ro
  127. AddLanguage ru .ru
  128. AddLanguage sa .sa
  129. AddLanguage se .se
  130. AddLanguage si .si
  131. AddLanguage sk .sk
  132. AddLanguage sl .sl
  133. AddLanguage sq .sq
  134. AddLanguage sr .sr
  135. AddLanguage sv .sv
  136. AddLanguage ta .ta
  137. AddLanguage te .te
  138. AddLanguage th .th
  139. AddLanguage tl .tl
  140. RemoveType tr
  141. # tr is troff in /etc/mime.types
  142. AddLanguage tr .tr
  143. AddLanguage uk .uk
  144. AddLanguage ur .ur
  145. AddLanguage vi .vi
  146. AddLanguage wo .wo
  147. AddLanguage xh .xh
  148. AddLanguage zh-CN .zh-cn
  149. AddLanguage zh-TW .zh-tw
  150. #
  151. # Commonly used filename extensions to character sets. You probably
  152. # want to avoid clashes with the language extensions, unless you
  153. # are good at carefully testing your setup after each change.
  154. # See http://www.iana.org/assignments/character-sets for the
  155. # official list of charset names and their respective RFCs.
  156. #
  157. AddCharset us-ascii .ascii .us-ascii
  158. AddCharset ISO-8859-1 .iso8859-1 .latin1
  159. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  160. AddCharset ISO-8859-3 .iso8859-3 .latin3
  161. AddCharset ISO-8859-4 .iso8859-4 .latin4
  162. AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
  163. AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
  164. AddCharset ISO-8859-7 .iso8859-7 .grk .greek
  165. AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
  166. AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
  167. AddCharset ISO-8859-10 .iso8859-10 .latin6
  168. AddCharset ISO-8859-13 .iso8859-13
  169. AddCharset ISO-8859-14 .iso8859-14 .latin8
  170. AddCharset ISO-8859-15 .iso8859-15 .latin9
  171. AddCharset ISO-8859-16 .iso8859-16 .latin10
  172. AddCharset ISO-2022-JP .iso2022-jp .jis
  173. AddCharset ISO-2022-KR .iso2022-kr .kis
  174. AddCharset ISO-2022-CN .iso2022-cn .cis
  175. AddCharset Big5 .Big5 .big5 .b5
  176. AddCharset cn-Big5 .cn-big5
  177. # For russian, more than one charset is used (depends on client, mostly):
  178. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  179. AddCharset CP866 .cp866
  180. AddCharset KOI8 .koi8
  181. AddCharset KOI8-E .koi8-e
  182. AddCharset KOI8-r .koi8-r .koi8-ru
  183. AddCharset KOI8-U .koi8-u
  184. AddCharset KOI8-ru .koi8-uk .ua
  185. AddCharset ISO-10646-UCS-2 .ucs2
  186. AddCharset ISO-10646-UCS-4 .ucs4
  187. AddCharset UTF-7 .utf7
  188. AddCharset UTF-8 .utf8
  189. AddCharset UTF-16 .utf16
  190. AddCharset UTF-16BE .utf16be
  191. AddCharset UTF-16LE .utf16le
  192. AddCharset UTF-32 .utf32
  193. AddCharset UTF-32BE .utf32be
  194. AddCharset UTF-32LE .utf32le
  195. AddCharset euc-cn .euc-cn
  196. AddCharset euc-gb .euc-gb
  197. AddCharset euc-jp .euc-jp
  198. AddCharset euc-kr .euc-kr
  199. #Not sure how euc-tw got in - IANA doesn't list it???
  200. AddCharset EUC-TW .euc-tw
  201. AddCharset gb2312 .gb2312 .gb
  202. AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  203. AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  204. AddCharset shift_jis .shift_jis .sjis
  205. AddCharset BRF .brf
  206. #
  207. # AddHandler allows you to map certain file extensions to "handlers":
  208. # actions unrelated to filetype. These can be either built into the server
  209. # or added with the Action directive (see below)
  210. #
  211. # To use CGI scripts outside of ScriptAliased directories:
  212. # (You will also need to add "ExecCGI" to the "Options" directive.)
  213. #
  214. #AddHandler cgi-script .cgi
  215. #
  216. # For files that include their own HTTP headers:
  217. #
  218. #AddHandler send-as-is asis
  219. #
  220. # For server-parsed imagemap files:
  221. #
  222. #AddHandler imap-file map
  223. #
  224. # For type maps (negotiated resources):
  225. # (This is enabled by default to allow the Apache "It Worked" page
  226. # to be distributed in multiple languages.)
  227. #
  228. AddHandler type-map var
  229. #
  230. # Filters allow you to process content before it is sent to the client.
  231. #
  232. # To parse .shtml files for server-side includes (SSI):
  233. # (You will also need to add "Includes" to the "Options" directive.)
  234. #
  235. AddType text/html .shtml
  236. <IfModule mod_include.c>
  237. AddOutputFilter INCLUDES .shtml
  238. </IfModule>