mime.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #######################################################################
  2. ##
  3. ## MimeType handling
  4. ## -------------------
  5. ##
  6. ## http://www.lighttpd.net/documentation/configuration.html#mimetypes
  7. ##
  8. ## Use the "Content-Type" extended attribute to obtain mime type if
  9. ## possible
  10. ##
  11. mimetype.use-xattr = "disable"
  12. ##
  13. ## mimetype mapping
  14. ##
  15. mimetype.assign = (
  16. ".pdf" => "application/pdf",
  17. ".sig" => "application/pgp-signature",
  18. ".spl" => "application/futuresplash",
  19. ".class" => "application/octet-stream",
  20. ".ps" => "application/postscript",
  21. ".torrent" => "application/x-bittorrent",
  22. ".dvi" => "application/x-dvi",
  23. ".gz" => "application/x-gzip",
  24. ".pac" => "application/x-ns-proxy-autoconfig",
  25. ".swf" => "application/x-shockwave-flash",
  26. ".tar.gz" => "application/x-tgz",
  27. ".tgz" => "application/x-tgz",
  28. ".tar" => "application/x-tar",
  29. ".zip" => "application/zip",
  30. ".mp3" => "audio/mpeg",
  31. ".m3u" => "audio/x-mpegurl",
  32. ".wma" => "audio/x-ms-wma",
  33. ".wax" => "audio/x-ms-wax",
  34. ".ogg" => "application/ogg",
  35. ".wav" => "audio/x-wav",
  36. ".gif" => "image/gif",
  37. ".jpg" => "image/jpeg",
  38. ".jpeg" => "image/jpeg",
  39. ".png" => "image/png",
  40. ".xbm" => "image/x-xbitmap",
  41. ".xpm" => "image/x-xpixmap",
  42. ".xwd" => "image/x-xwindowdump",
  43. ".css" => "text/css",
  44. ".html" => "text/html",
  45. ".htm" => "text/html",
  46. ".js" => "text/javascript",
  47. ".asc" => "text/plain",
  48. ".c" => "text/plain",
  49. ".cpp" => "text/plain",
  50. ".log" => "text/plain",
  51. ".conf" => "text/plain",
  52. ".text" => "text/plain",
  53. ".txt" => "text/plain",
  54. ".spec" => "text/plain",
  55. ".dtd" => "text/xml",
  56. ".xml" => "text/xml",
  57. ".mpeg" => "video/mpeg",
  58. ".mpg" => "video/mpeg",
  59. ".mov" => "video/quicktime",
  60. ".qt" => "video/quicktime",
  61. ".avi" => "video/x-msvideo",
  62. ".asf" => "video/x-ms-asf",
  63. ".asx" => "video/x-ms-asf",
  64. ".wmv" => "video/x-ms-wmv",
  65. ".bz2" => "application/x-bzip",
  66. ".tbz" => "application/x-bzip-compressed-tar",
  67. ".tar.bz2" => "application/x-bzip-compressed-tar",
  68. ".rpm" => "application/x-rpm",
  69. # make the default mime type application/octet-stream.
  70. # "" => "application/octet-stream",
  71. "" => "text/html",
  72. )
  73. #
  74. #######################################################################