/etc/lighttpd.conf.php

https://github.com/jaz303/plumbing.php · PHP · 85 lines · 77 code · 6 blank · 2 comment · 3 complexity · 89921abdd0017e07e7d3ab2723fd30e1 MD5 · raw file

  1. server.modules = (
  2. "mod_access",
  3. "mod_accesslog",
  4. "mod_fastcgi",
  5. "mod_rewrite",
  6. "mod_auth"
  7. )
  8. mimetype.assign = (
  9. ".pdf" => "application/pdf",
  10. ".sig" => "application/pgp-signature",
  11. ".spl" => "application/futuresplash",
  12. ".class" => "application/octet-stream",
  13. ".ps" => "application/postscript",
  14. ".torrent" => "application/x-bittorrent",
  15. ".dvi" => "application/x-dvi",
  16. ".gz" => "application/x-gzip",
  17. ".pac" => "application/x-ns-proxy-autoconfig",
  18. ".swf" => "application/x-shockwave-flash",
  19. ".tar.gz" => "application/x-tgz",
  20. ".tgz" => "application/x-tgz",
  21. ".tar" => "application/x-tar",
  22. ".zip" => "application/zip",
  23. ".mp3" => "audio/mpeg",
  24. ".m3u" => "audio/x-mpegurl",
  25. ".wma" => "audio/x-ms-wma",
  26. ".wax" => "audio/x-ms-wax",
  27. ".ogg" => "application/ogg",
  28. ".wav" => "audio/x-wav",
  29. ".gif" => "image/gif",
  30. ".jpg" => "image/jpeg",
  31. ".jpeg" => "image/jpeg",
  32. ".png" => "image/png",
  33. ".xbm" => "image/x-xbitmap",
  34. ".xpm" => "image/x-xpixmap",
  35. ".xwd" => "image/x-xwindowdump",
  36. ".css" => "text/css",
  37. ".html" => "text/html",
  38. ".htm" => "text/html",
  39. ".js" => "text/javascript",
  40. ".asc" => "text/plain",
  41. ".c" => "text/plain",
  42. ".cpp" => "text/plain",
  43. ".log" => "text/plain",
  44. ".conf" => "text/plain",
  45. ".text" => "text/plain",
  46. ".txt" => "text/plain",
  47. ".spec" => "text/plain",
  48. ".dtd" => "text/xml",
  49. ".xml" => "text/xml",
  50. ".mpeg" => "video/mpeg",
  51. ".mpg" => "video/mpeg",
  52. ".mov" => "video/quicktime",
  53. ".qt" => "video/quicktime",
  54. ".avi" => "video/x-msvideo",
  55. ".asf" => "video/x-ms-asf",
  56. ".asx" => "video/x-ms-asf",
  57. ".wmv" => "video/x-ms-wmv",
  58. ".bz2" => "application/x-bzip",
  59. ".tbz" => "application/x-bzip-compressed-tar",
  60. ".tar.bz2" => "application/x-bzip-compressed-tar",
  61. # make the default mime type application/octet-stream.
  62. #"" => "application/octet-stream",
  63. )
  64. server.document-root = "<?= $this->real_document_root() ?>"
  65. server.port = <?= $this->port() ?>
  66. <? if ($this->is_directory_listing_enabled()) { ?>
  67. server.dir-listing = "enable"
  68. <? } else { ?>
  69. server.dir-listing = "disable"
  70. <? } ?>
  71. <? if ($this->dispatcher()) { ?>
  72. server.error-handler-404 = "<?= $this->dispatcher() ?>"
  73. <? } ?>
  74. static-file.exclude-extensions = ( ".php" )
  75. index-file.names = ( "index.htm", "index.php", "index.html" )
  76. fastcgi.server = ( ".php" => ((
  77. "bin-path" => "<?= $this->php_path_with_ini_args() ?>",
  78. "socket" => "<?= $this->socket_path() ?>"
  79. )))