From 72d0174884432e0f9aede0cce10acd1a30c391cc Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 28 Dec 2010 20:44:26 -0500 Subject: [PATCH] a touch more futzing with lighttpd config before just ditching it for nginx :P --- docroot/html/phpinfo.php | 1 + docroot/lighttpd.conf | 61 +++------------------------------------- 2 files changed, 5 insertions(+), 57 deletions(-) create mode 100644 docroot/html/phpinfo.php diff --git a/docroot/html/phpinfo.php b/docroot/html/phpinfo.php new file mode 100644 index 0000000..147cebc --- /dev/null +++ b/docroot/html/phpinfo.php @@ -0,0 +1 @@ + diff --git a/docroot/lighttpd.conf b/docroot/lighttpd.conf index f3d99ee..11a553f 100644 --- a/docroot/lighttpd.conf +++ b/docroot/lighttpd.conf @@ -11,60 +11,7 @@ accesslog.filename = env.VIRTUAL_ENV + "/src/docroot/access.log" setenv.add-environment = ("PATH" => env.PATH) -cgi.assign = (".cgi" => "") - -# mimetype mapping -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", - ".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", - "" => "text/plain" - ) +cgi.assign = ( + ".cgi" => "", + ".php" => "/usr/bin/php-cgi" +)