lighttpd.conf 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #
  2. # /etc/lighttpd.conf: lighttpd(1) configuration
  3. #
  4. # to use mod_rewrite you have to compile lighttpd with libpcre installed
  5. server.modules = ("mod_accesslog")
  6. server.port = 80
  7. server.username = "lighttpd"
  8. server.groupname = "lighttpd"
  9. server.pid-file = "/var/run/lighttpd.pid"
  10. # ssl support
  11. #server.port = 443
  12. #ssl.engine = "enable"
  13. #ssl.pemfile = "/etc/ssl/certs/lighttpd.pem"
  14. # chrooted operation
  15. server.chroot = "/var/www"
  16. server.document-root = "/htdocs"
  17. server.errorlog = "/logs/error_log"
  18. accesslog.filename = "/logs/access_log"
  19. # non-chrooted operation
  20. #server.document-root = "/var/www/htdocs"
  21. #server.errorlog = "/var/www/logs/error_log"
  22. #accesslog.filename = "/var/www/logs/access_log"
  23. server.dir-listing = "enable"
  24. server.indexfiles = ("index.html", "index.htm", "default.htm")
  25. mimetype.assign = (
  26. ".ai" => "application/postscript",
  27. ".aif" => "audio/x-aiff",
  28. ".aifc" => "audio/x-aiff",
  29. ".aiff" => "audio/x-aiff",
  30. ".arj" => "application/x-arj-compressed",
  31. ".asc" => "text/plain",
  32. ".atom" => "application/atom+xml",
  33. ".au" => "audio/ulaw",
  34. ".avi" => "video/x-msvideo",
  35. ".bat" => "application/x-msdos-program",
  36. ".bcpio" => "application/x-bcpio",
  37. ".bin" => "application/octet-stream",
  38. ".bmp" => "image/bmp",
  39. ".cdf" => "application/x-netcdf",
  40. ".cgm" => "image/cgm",
  41. ".class" => "application/octet-stream",
  42. ".com" => "application/x-msdos-program",
  43. ".cpio" => "application/x-cpio",
  44. ".cpt" => "application/mac-compactpro",
  45. ".csh" => "application/x-csh",
  46. ".css" => "text/css",
  47. ".dcr" => "application/x-director",
  48. ".deb" => "application/x-debian-package",
  49. ".dir" => "application/x-director",
  50. ".djv" => "image/vnd.djvu",
  51. ".djvu" => "image/vnd.djvu",
  52. ".dl" => "video/dl",
  53. ".dll" => "application/octet-stream",
  54. ".dmg" => "application/octet-stream",
  55. ".dms" => "application/octet-stream",
  56. ".doc" => "application/msword",
  57. ".dtd" => "application/xml-dtd",
  58. ".dvi" => "application/x-dvi",
  59. ".dxr" => "application/x-director",
  60. ".eps" => "application/postscript",
  61. ".etx" => "text/x-setext",
  62. ".exe" => "application/x-msdos-program",
  63. ".ez" => "application/andrew-inset",
  64. ".fli" => "video/fli",
  65. ".gif" => "image/gif",
  66. ".gl" => "video/gl",
  67. ".gram" => "application/srgs",
  68. ".grxml" => "application/srgs+xml",
  69. ".gtar" => "application/x-gtar",
  70. ".tar.gz" => "application/x-tar-gz",
  71. ".gz" => "application/x-gunzip",
  72. ".hdf" => "application/x-hdf",
  73. ".hqx" => "application/mac-binhex40",
  74. ".htm" => "text/html",
  75. ".html" => "text/html",
  76. ".ice" => "x-conference/x-cooltalk",
  77. ".ico" => "image/x-icon",
  78. ".ics" => "text/calendar",
  79. ".ief" => "image/ief",
  80. ".ifb" => "text/calendar",
  81. ".iges" => "model/iges",
  82. ".igs" => "model/iges",
  83. ".jpe" => "image/jpeg",
  84. ".jpeg" => "image/jpeg",
  85. ".jpg" => "image/jpeg",
  86. ".js" => "application/x-javascript",
  87. ".kar" => "audio/midi",
  88. ".latex" => "application/x-latex",
  89. ".lha" => "application/octet-stream",
  90. ".lzh" => "application/octet-stream",
  91. ".m3u" => "audio/x-mpegurl",
  92. ".m4u" => "video/vnd.mpegurl",
  93. ".man" => "application/x-troff-man",
  94. ".mathml" => "application/mathml+xml",
  95. ".me" => "application/x-troff-me",
  96. ".mesh" => "model/mesh",
  97. ".mid" => "audio/midi",
  98. ".midi" => "audio/midi",
  99. ".mif" => "application/x-mif",
  100. ".mov" => "video/quicktime",
  101. ".movie" => "video/x-sgi-movie",
  102. ".mp2" => "video/mpeg",
  103. ".mp3" => "audio/mpeg",
  104. ".mpe" => "video/mpeg",
  105. ".mpeg" => "video/mpeg",
  106. ".mpg" => "video/mpeg",
  107. ".mpga" => "audio/mpeg",
  108. ".ms" => "application/x-troff-ms",
  109. ".msh" => "model/mesh",
  110. ".mxu" => "video/vnd.mpegurl",
  111. ".nc" => "application/x-netcdf",
  112. ".oda" => "application/oda",
  113. ".ogg" => "application/ogg",
  114. ".pbm" => "image/x-portable-bitmap",
  115. ".pdb" => "chemical/x-pdb",
  116. ".pdf" => "application/pdf",
  117. ".pgm" => "image/x-portable-graymap",
  118. ".pgn" => "application/x-chess-pgn",
  119. ".pgp" => "application/pgp",
  120. ".pl" => "application/x-perl",
  121. ".pm" => "application/x-perl",
  122. ".png" => "image/png",
  123. ".pnm" => "image/x-portable-anymap",
  124. ".ppm" => "image/x-portable-pixmap",
  125. ".ppt" => "application/vnd.ms-powerpoint",
  126. ".ps" => "application/postscript",
  127. ".qt" => "video/quicktime",
  128. ".ra" => "audio/x-pn-realaudio",
  129. ".ram" => "audio/x-pn-realaudio",
  130. ".rar" => "application/x-rar-compressed",
  131. ".ras" => "image/x-cmu-raster",
  132. ".rdf" => "application/rdf+xml",
  133. ".rgb" => "image/x-rgb",
  134. ".rm" => "application/vnd.rn-realmedia",
  135. ".roff" => "application/x-troff",
  136. ".rtf" => "application/rtf",
  137. ".rtx" => "text/richtext",
  138. ".sgm" => "text/sgml",
  139. ".sgml" => "text/sgml",
  140. ".sh" => "application/x-sh",
  141. ".shar" => "application/x-shar",
  142. ".silo" => "model/mesh",
  143. ".sit" => "application/x-stuffit",
  144. ".skd" => "application/x-koan",
  145. ".skm" => "application/x-koan",
  146. ".skp" => "application/x-koan",
  147. ".skt" => "application/x-koan",
  148. ".smi" => "application/smil",
  149. ".smil" => "application/smil",
  150. ".snd" => "audio/basic",
  151. ".so" => "application/octet-stream",
  152. ".spl" => "application/x-futuresplash",
  153. ".src" => "application/x-wais-source",
  154. ".sv4cpio" => "application/x-sv4cpio",
  155. ".sv4crc" => "application/x-sv4crc",
  156. ".svg" => "image/svg+xml",
  157. ".swf" => "application/x-shockwave-flash",
  158. ".t" => "application/x-troff",
  159. ".tar" => "application/x-tar",
  160. ".tcl" => "application/x-tcl",
  161. ".tex" => "application/x-tex",
  162. ".texi" => "application/x-texinfo",
  163. ".texinfo" => "application/x-texinfo",
  164. ".tgz" => "application/x-tar-gz",
  165. ".tif" => "image/tiff",
  166. ".tiff" => "image/tiff",
  167. ".tr" => "application/x-troff",
  168. ".tsv" => "text/tab-separated-values",
  169. ".txt" => "text/plain",
  170. ".ustar" => "application/x-ustar",
  171. ".vcd" => "application/x-cdlink",
  172. ".vrm" => "x-world/x-vrml",
  173. ".vrml" => "x-world/x-vrml",
  174. ".vxml" => "application/voicexml+xml",
  175. ".wav" => "audio/x-wav",
  176. ".wbmp" => "image/vnd.wap.wbmp",
  177. ".wbxml" => "application/vnd.wap.wbxml",
  178. ".wml" => "text/vnd.wap.wml",
  179. ".wmlc" => "application/vnd.wap.wmlc",
  180. ".wmls" => "text/vnd.wap.wmlscript",
  181. ".wmlsc" => "application/vnd.wap.wmlscriptc",
  182. ".wrl" => "x-world/x-vrml",
  183. ".xbm" => "image/x-xbitmap",
  184. ".xht" => "application/xhtml+xml",
  185. ".xhtml" => "application/xhtml+xml",
  186. ".xls" => "application/excel",
  187. ".xml" => "application/xml",
  188. ".xpm" => "image/x-xpixmap",
  189. ".xsl" => "application/xml",
  190. ".xslt" => "application/xslt+xml",
  191. ".xul" => "application/vnd.mozilla.xul+xml",
  192. ".xwd" => "image/x-xwindowdump",
  193. ".xyz" => "chemical/x-xyz",
  194. ".zip" => "application/x-zip-compressed"
  195. )
  196. # End of file