aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/configs/lighttpd.conf25
1 files changed, 13 insertions, 12 deletions
diff --git a/railties/configs/lighttpd.conf b/railties/configs/lighttpd.conf
index ab1d189c22..c23d152731 100644
--- a/railties/configs/lighttpd.conf
+++ b/railties/configs/lighttpd.conf
@@ -1,9 +1,11 @@
# Default configuration file for the lighttpd web server
# Start using ./script/server lighttpd
+server.bind = "0.0.0.0"
server.port = 3000
server.modules = ( "mod_rewrite", "mod_accesslog", "mod_fastcgi", "mod_compress", "mod_expire" )
+
server.error-handler-404 = "/dispatch.fcgi"
server.document-root = CWD + "/public/"
@@ -15,22 +17,21 @@ url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" )
compress.cache-dir = CWD + "/tmp/cache"
-expire.url = ( "/favicon.ico" => "access 3 days", "/images/" => "access 3 days", "/stylesheets/" => "access 3 days", "/javascripts/" => "access 3 days" )
+expire.url = ( "/favicon.ico" => "access 3 days",
+ "/images/" => "access 3 days",
+ "/stylesheets/" => "access 3 days",
+ "/javascripts/" => "access 3 days" )
# 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" => CWD + "/tmp/sockets/fcgi.socket",
- "bin-path" => CWD + "/public/dispatch.fcgi",
- "bin-environment" => ( "RAILS_ENV" => "development" )
- )
- )
-)
+fastcgi.server = ( ".fcgi" => ( "localhost" => (
+ "min-procs" => 1,
+ "max-procs" => 1,
+ "socket" => CWD + "/tmp/sockets/fcgi.socket",
+ "bin-path" => CWD + "/public/dispatch.fcgi",
+ "bin-environment" => ( "RAILS_ENV" => "development" )
+) ) )
mimetype.assign = (
".css" => "text/css",