cherokee.conf 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. ##
  2. ## cherokee.conf -- Cherokee HTTP server configuration file
  3. ##
  4. ## Common use
  5. ##
  6. ## NOTE: This file is NOT meant to be edited by hand. Instead, a
  7. ## convenient configuration interface is available, so the server can
  8. ## be tweaked in a easy and safe way. Run cherokee-admin as root, and
  9. ## then proceed to point your web browser to: http://localhost:9090/
  10. ##
  11. # Server
  12. #
  13. server!bind!1!port = 80
  14. server!timeout = 15
  15. server!keepalive = 1
  16. server!keepalive_max_requests = 500
  17. server!server_tokens = full
  18. server!panic_action = /usr/bin/cherokee-panic
  19. server!pid_file = /var/run/cherokee.pid
  20. # Default virtual server
  21. #
  22. vserver!1!nick = default
  23. vserver!1!document_root = /srv/www/htdocs
  24. vserver!1!directory_index = index.html
  25. vserver!1!logger = combined
  26. vserver!1!logger!access!type = file
  27. vserver!1!logger!access!filename = /var/log/cherokee/cherokee.access
  28. vserver!1!logger!access!buffsize = 16384
  29. vserver!1!error_writer!type = file
  30. vserver!1!error_writer!filename = /var/log/cherokee/cherokee.error
  31. vserver!1!rule!1!match = default
  32. vserver!1!rule!1!handler = common
  33. vserver!1!rule!1!handler!iocache = 1
  34. vserver!1!rule!2!match = directory
  35. vserver!1!rule!2!match!directory = /icons
  36. vserver!1!rule!2!handler = file
  37. vserver!1!rule!2!document_root = /usr/share/cherokee/icons
  38. vserver!1!rule!3!match = directory
  39. vserver!1!rule!3!match!directory = /cherokee_themes
  40. vserver!1!rule!3!document_root = /usr/share/cherokee/themes
  41. vserver!1!rule!3!handler = file
  42. vserver!1!rule!4!match = directory
  43. vserver!1!rule!4!match!directory = /cgi-bin
  44. vserver!1!rule!4!document_root = /srv/www/cgi-bin
  45. vserver!1!rule!4!handler = cgi
  46. vserver!1!rule!5!match = directory
  47. vserver!1!rule!5!match!directory = /about
  48. vserver!1!rule!5!encoder!gzip = 1
  49. vserver!1!rule!5!handler = server_info
  50. vserver!1!rule!5!handler!type = just_about
  51. # Icons
  52. #
  53. icons!directory = folder.png
  54. icons!parent_directory = arrow_turn_left.png
  55. icons!default = page_white.png
  56. icons!file!bomb.png = core
  57. icons!file!page_white_go.png = *README*
  58. icons!suffix!html.png = html,htm
  59. icons!suffix!css.png = css
  60. icons!suffix!page_white_c.png = c,h,cpp
  61. icons!suffix!page_white_php.png = php
  62. icons!suffix!page_white_acrobat.png = pdf
  63. icons!suffix!page_white_office.png = doc,ppt,xls
  64. icons!suffix!page_white_text.png = txt,text,rtf,sdw
  65. icons!suffix!font.png = ttf
  66. icons!suffix!music.png = au,snd,mid,midi,kar,mpga,mpega,mp2,mp3,sid,wav,aif,aiff,aifc,gsm,m3u,wma,wax,ra,rm,ram,pls,sd2,ogg
  67. icons!suffix!package.png = tar,gz,bz2,zip,rar,ace,lha,Z,7z,dmg,cpk
  68. icons!suffix!film.png = avi,mpeg,mpe,mpg,mpeg3,dl,fli,qt,mov,movie,flv,webm
  69. icons!suffix!cup.png = java,class,jar
  70. icons!suffix!cd.png = iso,ngr,cue
  71. icons!suffix!camera.png = jpg,jpeg,jpe
  72. icons!suffix!color_wheel.png = png,gif,xcf,bmp,pcx,tiff,tif,cdr,psd,xpm,xbm
  73. icons!suffix!script.png = sh,csh,ksh,tcl,tk,py,pl
  74. icons!suffix!ruby.png = rb
  75. icons!suffix!control_play.png = bin,exe,com,msi,out
  76. icons!suffix!email.png = eml,mbox,box,email,mbx
  77. icons!suffix!printer.png = ps,eps
  78. # Mime types
  79. #
  80. mime!application/bzip2!extensions = bz2
  81. mime!application/gzip!extensions = gz
  82. mime!application/hta!extensions = hta
  83. mime!application/java-archive!extensions = jar
  84. mime!application/java-serialized-object!extensions = ser
  85. mime!application/java-vm!extensions = class
  86. mime!application/json!extensions = json
  87. mime!application/mac-binhex40!extensions = hqx
  88. mime!application/msaccess!extensions = mdb
  89. mime!application/msword!extensions = doc,dot
  90. mime!application/octet-stream!extensions = bin
  91. mime!application/x-7z-compressed!extensions = 7z
  92. mime!application/octetstream!extensions = ace
  93. mime!application/oda!extensions = oda
  94. mime!application/ogg!extensions = ogx
  95. mime!application/pdf!extensions = pdf
  96. mime!application/pgp-keys!extensions = key
  97. mime!application/pgp-signature!extensions = pgp
  98. mime!application/pics-rules!extensions = prf
  99. mime!application/postscript!extensions = ps,ai,eps
  100. mime!application/rar!extensions = rar
  101. mime!application/rdf+xml!extensions = rdf
  102. mime!application/rss+xml!extensions = rss
  103. mime!application/smil!extensions = smi,smil
  104. mime!application/vnd.mozilla.xul+xml!extensions = xul
  105. mime!application/vnd.ms-excel!extensions = xls,xlb,xlt
  106. mime!application/vnd.ms-pki.seccat!extensions = cat
  107. mime!application/vnd.ms-pki.stl!extensions = stl
  108. mime!application/vnd.ms-powerpoint!extensions = ppt,pps
  109. mime!application/vnd.oasis.opendocument.chart!extensions = odc
  110. mime!application/vnd.oasis.opendocument.database!extensions = odb
  111. mime!application/vnd.oasis.opendocument.formula!extensions = odf
  112. mime!application/vnd.oasis.opendocument.graphics!extensions = odg
  113. mime!application/vnd.oasis.opendocument.image!extensions = odi
  114. mime!application/vnd.oasis.opendocument.presentation!extensions = odp
  115. mime!application/vnd.oasis.opendocument.spreadsheet!extensions = ods
  116. mime!application/vnd.oasis.opendocument.text!extensions = odt
  117. mime!application/vnd.oasis.opendocument.text-master!extensions = odm
  118. mime!application/vnd.oasis.opendocument.text-web!extensions = oth
  119. mime!application/vnd.pkg5.info!extensions = p5i
  120. mime!application/vnd.visio!extensions = vsd
  121. mime!application/vnd.wap.wbxml!extensions = wbxml
  122. mime!application/vnd.wap.wmlc!extensions = wmlc
  123. mime!application/vnd.wap.wmlscriptc!extensions = wmlsc
  124. mime!application/x-abiword!extensions = abw
  125. mime!application/x-apple-diskimage!extensions = dmg
  126. mime!application/x-bcpio!extensions = bcpio
  127. mime!application/x-bittorrent!extensions = torrent
  128. mime!application/x-cdf!extensions = cdf
  129. mime!application/x-cpio!extensions = cpio
  130. mime!application/x-csh!extensions = csh
  131. mime!application/x-debian-package!extensions = deb,udeb
  132. mime!application/x-director!extensions = dcr,dir,dxr
  133. mime!application/x-dvi!extensions = dvi
  134. mime!application/x-flac!extensions = flac
  135. mime!application/x-font!extensions = pfa,pfb,gsf,pcf,pcf.Z
  136. mime!application/x-freemind!extensions = mm
  137. mime!application/x-gnumeric!extensions = gnumeric
  138. mime!application/x-gtar!extensions = gtar,tgz,taz
  139. mime!application/x-gzip!extensions = gz,tgz
  140. mime!application/x-httpd-php!extensions = phtml,pht,php
  141. mime!application/x-httpd-php-source!extensions = phps
  142. mime!application/x-httpd-php3!extensions = php3
  143. mime!application/x-httpd-php3-preprocessed!extensions = php3p
  144. mime!application/x-httpd-php4!extensions = php4
  145. mime!application/x-internet-signup!extensions = ins,isp
  146. mime!application/x-iphone!extensions = iii
  147. mime!application/x-iso9660-image!extensions = iso
  148. mime!application/x-java-jnlp-file!extensions = jnlp
  149. mime!application/x-javascript!extensions = js
  150. mime!application/x-kchart!extensions = chrt
  151. mime!application/x-killustrator!extensions = kil
  152. mime!application/x-koan!extensions = skp,skd,skt,skm
  153. mime!application/x-kpresenter!extensions = kpr,kpt
  154. mime!application/x-kspread!extensions = ksp
  155. mime!application/x-kword!extensions = kwd,kwt
  156. mime!application/x-latex!extensions = latex
  157. mime!application/x-lha!extensions = lha
  158. mime!application/x-lzh!extensions = lzh
  159. mime!application/x-lzx!extensions = lzx
  160. mime!application/x-ms-wmd!extensions = wmd
  161. mime!application/x-ms-wmz!extensions = wmz
  162. mime!application/x-msdos-program!extensions = com,exe,bat,dll
  163. mime!application/x-msi!extensions = msi
  164. mime!application/x-netcdf!extensions = nc
  165. mime!application/x-ns-proxy-autoconfig!extensions = pac
  166. mime!application/x-nwc!extensions = nwc
  167. mime!application/x-object!extensions = o
  168. mime!application/x-oz-application!extensions = oza
  169. mime!application/x-pkcs7-certreqresp!extensions = p7r
  170. mime!application/x-pkcs7-crl!extensions = crl
  171. mime!application/x-python-code!extensions = pyc,pyo
  172. mime!application/x-quicktimeplayer!extensions = qtl
  173. mime!application/x-redhat-package-manager!extensions = rpm
  174. mime!application/x-sh!extensions = sh
  175. mime!application/x-shar!extensions = shar
  176. mime!application/x-shockwave-flash!extensions = swf,swfl
  177. mime!application/x-stuffit!extensions = sit,sea
  178. mime!application/x-sv4cpio!extensions = sv4cpio
  179. mime!application/x-sv4crc!extensions = sv4crc
  180. mime!application/x-tar!extensions = tar
  181. mime!application/x-tar!extensions = tar
  182. mime!application/x-tcl!extensions = tcl
  183. mime!application/x-tex-pk!extensions = pk
  184. mime!application/x-texinfo!extensions = texinfo,texi
  185. mime!application/x-trash!extensions = ~,bak,old,sik
  186. mime!application/x-troff!extensions = t,tr,roff
  187. mime!application/x-troff-man!extensions = man
  188. mime!application/x-troff-me!extensions = me
  189. mime!application/x-troff-ms!extensions = ms
  190. mime!application/x-ustar!extensions = ustar
  191. mime!application/x-x509-ca-cert!extensions = crt
  192. mime!application/x-xcf!extensions = xcf
  193. mime!application/x-xfig!extensions = fig
  194. mime!application/x-xpinstall!extensions = xpi
  195. mime!application/xhtml+xml!extensions = xhtml,xht
  196. mime!application/xml!extensions = xml,xsl
  197. mime!application/zip!extensions = zip
  198. mime!audio/basic!extensions = au,snd
  199. mime!audio/midi!extensions = mid,midi,kar
  200. mime!audio/mpeg!extensions = mpga,mpega,mp2,mp3,m4a
  201. mime!audio/ogg!extensions = ogg,oga
  202. mime!audio/prs.sid!extensions = sid
  203. mime!audio/x-aiff!extensions = aif,aiff,aifc
  204. mime!audio/x-gsm!extensions = gsm
  205. mime!audio/x-mpegurl!extensions = m3u
  206. mime!audio/x-ms-wax!extensions = wax
  207. mime!audio/x-ms-wma!extensions = wma
  208. mime!audio/x-pn-realaudio!extensions = ra,rm,ram
  209. mime!audio/x-realaudio!extensions = ra
  210. mime!audio/x-scpls!extensions = pls
  211. mime!audio/x-sd2!extensions = sd2
  212. mime!audio/x-wav!extensions = wav
  213. mime!chemical/x-cache!extensions = cac,cache
  214. mime!chemical/x-cache-csf!extensions = csf
  215. mime!chemical/x-cdx!extensions = cdx
  216. mime!chemical/x-cif!extensions = cif
  217. mime!chemical/x-cmdf!extensions = cmdf
  218. mime!chemical/x-cml!extensions = cml
  219. mime!chemical/x-compass!extensions = cpa
  220. mime!chemical/x-crossfire!extensions = bsd
  221. mime!chemical/x-csml!extensions = csml,csm
  222. mime!chemical/x-ctx!extensions = ctx
  223. mime!chemical/x-cxf!extensions = cxf,cef
  224. mime!chemical/x-isostar!extensions = istr,ist
  225. mime!chemical/x-jcamp-dx!extensions = jdx,dx
  226. mime!chemical/x-kinemage!extensions = kin
  227. mime!chemical/x-pdb!extensions = pdb,ent
  228. mime!chemical/x-swissprot!extensions = sw
  229. mime!chemical/x-vamas-iso14976!extensions = vms
  230. mime!chemical/x-vmd!extensions = vmd
  231. mime!chemical/x-xtel!extensions = xtel
  232. mime!chemical/x-xyz!extensions = xyz
  233. mime!image/gif!extensions = gif
  234. mime!image/jpeg!extensions = jpeg,jpg,jpe
  235. mime!image/pcx!extensions = pcx
  236. mime!image/png!extensions = png
  237. mime!image/svg+xml!extensions = svg,svgz
  238. mime!image/tiff!extensions = tiff,tif
  239. mime!image/vnd.djvu!extensions = djvu,djv
  240. mime!image/vnd.wap.wbmp!extensions = wbmp
  241. mime!image/x-icon!extensions = ico
  242. mime!image/x-ms-bmp!extensions = bmp
  243. mime!image/x-photoshop!extensions = psd
  244. mime!image/x-portable-anymap!extensions = pnm
  245. mime!image/x-portable-bitmap!extensions = pbm
  246. mime!image/x-portable-graymap!extensions = pgm
  247. mime!image/x-portable-pixmap!extensions = ppm
  248. mime!image/x-xbitmap!extensions = xbm
  249. mime!image/x-xpixmap!extensions = xpm
  250. mime!image/x-xwindowdump!extensions = xwd
  251. mime!model/iges!extensions = igs,iges
  252. mime!model/mesh!extensions = msh,mesh,silo
  253. mime!model/vrml!extensions = wrl,vrml
  254. mime!text/calendar!extensions = ics,icz
  255. mime!text/comma-separated-values!extensions = csv
  256. mime!text/css!extensions = css
  257. mime!text/h323!extensions = 323
  258. mime!text/html!extensions = html,htm,shtml
  259. mime!text/iuls!extensions = uls
  260. mime!text/mathml!extensions = mml
  261. mime!text/plain!extensions = asc,txt,text,diff,pot
  262. mime!text/richtext!extensions = rtx
  263. mime!text/rtf!extensions = rtf
  264. mime!text/scriptlet!extensions = sct,wsc
  265. mime!text/tab-separated-values!extensions = tsv
  266. mime!text/vnd.sun.j2me.app-descriptor!extensions = jad
  267. mime!text/vnd.wap.wml!extensions = wml
  268. mime!text/vnd.wap.wmlscript!extensions = wmls
  269. mime!text/x-boo!extensions = boo
  270. mime!text/x-c++hdr!extensions = h++,hpp,hxx,hh
  271. mime!text/x-c++src!extensions = c++,cpp,cxx,cc
  272. mime!text/x-chdr!extensions = h
  273. mime!text/x-csh!extensions = csh
  274. mime!text/x-csrc!extensions = c
  275. mime!text/x-dsrc!extensions = d
  276. mime!text/x-haskell!extensions = hs
  277. mime!text/x-java!extensions = java
  278. mime!text/x-literate-haskell!extensions = lhs
  279. mime!text/x-moc!extensions = moc
  280. mime!text/x-pascal!extensions = p,pas
  281. mime!text/x-pcs-gcd!extensions = gcd
  282. mime!text/x-perl!extensions = pl,pm
  283. mime!text/x-python!extensions = py
  284. mime!text/x-setext!extensions = etx
  285. mime!text/x-sh!extensions = sh
  286. mime!text/x-tcl!extensions = tcl,tk
  287. mime!text/x-tex!extensions = tex,ltx,sty,cls
  288. mime!text/x-vcalendar!extensions = vcs
  289. mime!text/x-vcard!extensions = vcf
  290. mime!video/dl!extensions = dl
  291. mime!video/dv!extensions = dif,dv
  292. mime!video/fli!extensions = fli
  293. mime!video/gl!extensions = gl
  294. mime!video/mp4!extensions = mp4
  295. mime!video/mpeg!extensions = mpeg,mpg,mpe
  296. mime!video/ogg!extensions = ogv
  297. mime!video/quicktime!extensions = qt,mov
  298. mime!video/vnd.mpegurl!extensions = mxu
  299. mime!video/x-flv!extensions = flv
  300. mime!video/x-la-asf!extensions = lsf,lsx
  301. mime!video/x-mng!extensions = mng
  302. mime!video/x-ms-asf!extensions = asf,asx
  303. mime!video/x-ms-wm!extensions = wm
  304. mime!video/x-ms-wmv!extensions = wmv
  305. mime!video/x-ms-wmx!extensions = wmx
  306. mime!video/x-ms-wvx!extensions = wvx
  307. mime!video/x-msvideo!extensions = avi
  308. mime!video/x-sgi-movie!extensions = movie
  309. mime!video/webm!extensions = webm
  310. mime!x-conference/x-cooltalk!extensions = ice
  311. mime!x-world/x-vrml!extensions = vrm,vrml,wrl