lighttpd.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. server.tag = "LightTPD/1.4.19 (Win32)"
  2. server.modules = ( "mod_accesslog",
  3. "mod_alias",
  4. "mod_cgi",
  5. "mod_rewrite" )
  6. # default document root required
  7. server.document-root = "."
  8. # files to check for if .../ is requested
  9. index-file.names = ( "index.php", "index.pl", "index.cgi",
  10. "index.html", "index.htm", "default.htm" )
  11. # mimetype mapping
  12. mimetype.assign = (
  13. ".gif" => "image/gif",
  14. ".jpg" => "image/jpeg",
  15. ".jpeg" => "image/jpeg",
  16. ".png" => "image/png",
  17. ".svg" => "image/svg+xml",
  18. ".css" => "text/css",
  19. ".html" => "text/html",
  20. ".htm" => "text/html",
  21. ".xhtml" => "application/xhtml+xml",
  22. ".js" => "application/x-javascript",
  23. ".log" => "text/plain",
  24. ".conf" => "text/plain",
  25. ".text" => "text/plain",
  26. ".txt" => "text/plain",
  27. ".dtd" => "text/xml",
  28. ".xml" => "text/xml",
  29. ".manifest" => "text/cache-manifest",
  30. )
  31. # Use the "Content-Type" extended attribute to obtain mime type if possible
  32. mimetype.use-xattr = "enable"
  33. ##
  34. # which extensions should not be handle via static-file transfer
  35. #
  36. # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
  37. static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )
  38. server.bind = "localhost"
  39. server.port = 8001
  40. ## virtual directory listings
  41. dir-listing.activate = "enable"
  42. #dir-listing.encoding = "iso-8859-2"
  43. #dir-listing.external-css = "style/oldstyle.css"
  44. ## enable debugging
  45. #debug.log-request-header = "enable"
  46. #debug.log-response-header = "enable"
  47. #debug.log-request-handling = "enable"
  48. #debug.log-file-not-found = "enable"
  49. #### SSL engine
  50. #ssl.engine = "enable"
  51. #ssl.pemfile = "server.pem"
  52. # Rewrite rule for utf-8 path test (LayoutTests/http/tests/uri/utf8-path.html)
  53. # See the apache rewrite rule at LayoutTests/http/tests/uri/intercept/.htaccess
  54. # Rewrite rule for LayoutTests/http/tests/appcache/cyrillic-uri.html.
  55. # See the apache rewrite rule at
  56. # LayoutTests/http/tests/appcache/resources/intercept/.htaccess
  57. url.rewrite-once = (
  58. "^/uri/intercept/(.*)" => "/uri/resources/print-uri.php",
  59. "^/appcache/resources/intercept/(.*)" => "/appcache/resources/print-uri.php"
  60. )
  61. # LayoutTests/http/tests/xmlhttprequest/response-encoding.html uses an htaccess
  62. # to override charset for reply2.txt, reply2.xml, and reply4.txt.
  63. $HTTP["url"] =~ "^/xmlhttprequest/resources/reply2.(txt|xml)" {
  64. mimetype.assign = (
  65. ".txt" => "text/plain; charset=windows-1251",
  66. ".xml" => "text/xml; charset=windows-1251"
  67. )
  68. }
  69. $HTTP["url"] =~ "^/xmlhttprequest/resources/reply4.txt" {
  70. mimetype.assign = ( ".txt" => "text/plain; charset=koi8-r" )
  71. }
  72. # LayoutTests/http/tests/appcache/wrong-content-type.html uses an htaccess
  73. # to override mime type for wrong-content-type.manifest.
  74. $HTTP["url"] =~ "^/appcache/resources/wrong-content-type.manifest" {
  75. mimetype.assign = ( ".manifest" => "text/plain" )
  76. }
  77. # Autogenerated test-specific config follows.