aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs/lighttpd.conf
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 17:54:07 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 17:54:07 +0000
commit9ad0f0898588841ea48744996acbe38ce3ec45e0 (patch)
tree965d6ba4d0eab8820f3a8790b402159789cd610c /railties/configs/lighttpd.conf
parent5f73ba11ceba20408facbd3240bea19682cd09e1 (diff)
downloadrails-9ad0f0898588841ea48744996acbe38ce3ec45e0.tar.gz
rails-9ad0f0898588841ea48744996acbe38ce3ec45e0.tar.bz2
rails-9ad0f0898588841ea48744996acbe38ce3ec45e0.zip
Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/configs/lighttpd.conf')
-rw-r--r--railties/configs/lighttpd.conf74
1 files changed, 74 insertions, 0 deletions
diff --git a/railties/configs/lighttpd.conf b/railties/configs/lighttpd.conf
new file mode 100644
index 0000000000..f9ab45263b
--- /dev/null
+++ b/railties/configs/lighttpd.conf
@@ -0,0 +1,74 @@
+# Default configuration file for the lighttpd web server
+# Start using ./script/lighttpd
+
+server.port = 3000
+
+server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" )
+server.error-handler-404 = "/dispatch.fcgi"
+server.document-root = "public/"
+
+server.errorlog = "log/lighttpd.error.log"
+accesslog.filename = "log/lighttpd.access.log"
+
+url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
+
+fastcgi.server = ( ".fcgi" =>
+ ( "localhost" =>
+ (
+ "min-procs" => 2,
+ "max-procs" => 2,
+ "socket" => "log/fcgi.socket",
+ "bin-path" => "public/dispatch.fcgi",
+ "bin-environment" => ( "RAILS_ENV" => "development" )
+ )
+ )
+)
+
+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" => "audio/x-wav",
+ ".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",
+ ".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"
+) \ No newline at end of file