/apache2/mods-available/mime.conf

http://github.com/brinkman83/bashrc · Config · 193 lines · 183 code · 10 blank · 0 comment · 0 complexity · 324e56ffc681fc38d663ebc1105652c5 MD5 · raw file

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