/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
- server.modules = (
- "mod_access",
- "mod_accesslog",
- "mod_fastcgi",
- "mod_rewrite",
- "mod_auth"
- )
- mimetype.assign = (
- ".pdf" => "application/pdf",
- ".sig" => "application/pgp-signature",
- ".spl" => "application/futuresplash",
- ".class" => "application/octet-stream",
- ".ps" => "application/postscript",
- ".torrent" => "application/x-bittorrent",
- ".dvi" => "application/x-dvi",
- ".gz" => "application/x-gzip",
- ".pac" => "application/x-ns-proxy-autoconfig",
- ".swf" => "application/x-shockwave-flash",
- ".tar.gz" => "application/x-tgz",
- ".tgz" => "application/x-tgz",
- ".tar" => "application/x-tar",
- ".zip" => "application/zip",
- ".mp3" => "audio/mpeg",
- ".m3u" => "audio/x-mpegurl",
- ".wma" => "audio/x-ms-wma",
- ".wax" => "audio/x-ms-wax",
- ".ogg" => "application/ogg",
- ".wav" => "audio/x-wav",
- ".gif" => "image/gif",
- ".jpg" => "image/jpeg",
- ".jpeg" => "image/jpeg",
- ".png" => "image/png",
- ".xbm" => "image/x-xbitmap",
- ".xpm" => "image/x-xpixmap",
- ".xwd" => "image/x-xwindowdump",
- ".css" => "text/css",
- ".html" => "text/html",
- ".htm" => "text/html",
- ".js" => "text/javascript",
- ".asc" => "text/plain",
- ".c" => "text/plain",
- ".cpp" => "text/plain",
- ".log" => "text/plain",
- ".conf" => "text/plain",
- ".text" => "text/plain",
- ".txt" => "text/plain",
- ".spec" => "text/plain",
- ".dtd" => "text/xml",
- ".xml" => "text/xml",
- ".mpeg" => "video/mpeg",
- ".mpg" => "video/mpeg",
- ".mov" => "video/quicktime",
- ".qt" => "video/quicktime",
- ".avi" => "video/x-msvideo",
- ".asf" => "video/x-ms-asf",
- ".asx" => "video/x-ms-asf",
- ".wmv" => "video/x-ms-wmv",
- ".bz2" => "application/x-bzip",
- ".tbz" => "application/x-bzip-compressed-tar",
- ".tar.bz2" => "application/x-bzip-compressed-tar",
- # make the default mime type application/octet-stream.
- #"" => "application/octet-stream",
- )
- server.document-root = "<?= $this->real_document_root() ?>"
- server.port = <?= $this->port() ?>
- <? if ($this->is_directory_listing_enabled()) { ?>
- server.dir-listing = "enable"
- <? } else { ?>
- server.dir-listing = "disable"
- <? } ?>
- <? if ($this->dispatcher()) { ?>
- server.error-handler-404 = "<?= $this->dispatcher() ?>"
- <? } ?>
- static-file.exclude-extensions = ( ".php" )
- index-file.names = ( "index.htm", "index.php", "index.html" )
- fastcgi.server = ( ".php" => ((
- "bin-path" => "<?= $this->php_path_with_ini_args() ?>",
- "socket" => "<?= $this->socket_path() ?>"
- )))