mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5ba5eb8246
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# 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" )
|
|
|
|
# Change *-procs to 2 if you need to use Upload Progress or other tasks that
|
|
# *need* to execute a second request while the first is still pending.
|
|
fastcgi.server = ( ".fcgi" =>
|
|
( "localhost" =>
|
|
(
|
|
"min-procs" => 1,
|
|
"max-procs" => 1,
|
|
"socket" => "log/fcgi.socket",
|
|
"bin-path" => "public/dispatch.fcgi",
|
|
"bin-environment" => ( "RAILS_ENV" => "development" )
|
|
)
|
|
)
|
|
)
|
|
|
|
mimetype.assign = (
|
|
".css" => "text/css",
|
|
".gif" => "image/gif",
|
|
".htm" => "text/html",
|
|
".html" => "text/html",
|
|
".jpeg" => "image/jpeg",
|
|
".jpg" => "image/jpeg",
|
|
".js" => "text/javascript",
|
|
".png" => "image/png",
|
|
".swf" => "application/x-shockwave-flash",
|
|
".txt" => "text/plain"
|
|
)
|