2005-10-28 13:54:07 -04:00
|
|
|
# Default configuration file for the lighttpd web server
|
2005-11-07 12:45:53 -05:00
|
|
|
# Start using ./script/server lighttpd
|
2005-10-28 13:54:07 -04:00
|
|
|
|
|
|
|
server.port = 3000
|
|
|
|
|
|
|
|
server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi" )
|
|
|
|
server.error-handler-404 = "/dispatch.fcgi"
|
2006-02-18 23:05:27 -05:00
|
|
|
server.document-root = CWD + "/public/"
|
2005-10-28 13:54:07 -04:00
|
|
|
|
2006-02-12 12:41:53 -05:00
|
|
|
server.errorlog = CWD + "/log/lighttpd.error.log"
|
|
|
|
accesslog.filename = CWD + "/log/lighttpd.access.log"
|
2005-10-28 13:54:07 -04:00
|
|
|
|
|
|
|
url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
|
|
|
|
|
2005-10-28 16:09:52 -04:00
|
|
|
# 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.
|
2005-10-28 13:54:07 -04:00
|
|
|
fastcgi.server = ( ".fcgi" =>
|
|
|
|
( "localhost" =>
|
|
|
|
(
|
2005-10-28 16:09:52 -04:00
|
|
|
"min-procs" => 1,
|
|
|
|
"max-procs" => 1,
|
2006-02-25 15:26:14 -05:00
|
|
|
"socket" => CWD + "/tmp/sockets/fcgi.socket",
|
2006-02-12 12:41:53 -05:00
|
|
|
"bin-path" => CWD + "/public/dispatch.fcgi",
|
2005-10-28 13:54:07 -04:00
|
|
|
"bin-environment" => ( "RAILS_ENV" => "development" )
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
mimetype.assign = (
|
|
|
|
".css" => "text/css",
|
2005-10-28 17:44:52 -04:00
|
|
|
".gif" => "image/gif",
|
2005-10-28 13:54:07 -04:00
|
|
|
".htm" => "text/html",
|
2005-10-28 17:44:52 -04:00
|
|
|
".html" => "text/html",
|
|
|
|
".jpeg" => "image/jpeg",
|
|
|
|
".jpg" => "image/jpeg",
|
2005-10-28 13:54:07 -04:00
|
|
|
".js" => "text/javascript",
|
2005-10-28 17:44:52 -04:00
|
|
|
".png" => "image/png",
|
|
|
|
".swf" => "application/x-shockwave-flash",
|
|
|
|
".txt" => "text/plain"
|
|
|
|
)
|
2006-03-01 21:56:26 -05:00
|
|
|
|
|
|
|
# Making sure file uploads above 64k always work when using IE or Safari
|
|
|
|
# Form more information, see http://trac.lighttpd.net/trac/ticket/360
|
|
|
|
$HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" {
|
|
|
|
server.max-keep-alive-requests = 0
|
|
|
|
}
|