# Default configuration file for the lighttpd web server # Start using ./script/server lighttpd var.basedir = "C:/test/testapp" server.bind = "127.0.0.1" server.port = 8001 server.modules = ( "mod_rewrite", "mod_accesslog", "mod_compress", "mod_expire", "mod_redirect", "mod_proxy" ) server.error-handler-404 = "/dispatch.fcgi" server.pid-file = basedir + "/tmp/pids/lighttpd.pid" server.document-root = basedir + "/public/" server.errorlog = basedir + "/log/lighttpd.error.log" accesslog.filename = basedir + "/log/lighttpd.access.log" url.redirect = ( "^/index.html(.*)$" => "/" ) compress.filetype = ( "text/plain", "text/html", "text/css", "text/javascript" ) compress.cache-dir = basedir + "/tmp/cache" expire.url = ( "/favicon.ico" => "access 3 days", "/images/" => "access 3 days", "/stylesheets/" => "access 3 days", "/javascripts/" => "access 3 days" ) proxy.debug = 0 proxy.balance = "fair" proxy.server = ("/" => (( "host" => "127.0.0.1", "port" => 4001 ), ( "host" => "127.0.0.1", "port" => 4002))) 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", ".xml" => "text/xml" ) # Making sure file uploads above 64k always work when using IE or Safari # For more information, see http://trac.lighttpd.net/trac/ticket/360 $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" { server.max-keep-alive-requests = 0 }