var.log_root = "/var/log/lighttpd" var.server_root = "/var/www" var.state_dir = "/var/run" var.home_dir = "/var/lib/lighttpd" var.conf_dir = "/etc/lighttpd" var.vhosts_dir = server_root + "/vhosts" var.cache_dir = "/var/cache/lighttpd" var.socket_dir = home_dir + "/sockets" include "modules.conf" server.port = 80 server.use-ipv6 = "disable" server.username = "lighttpd" server.groupname = "lighttpd" server.pid-file = state_dir + "/lighttpd.pid" server.errorlog = log_root + "/error.log" include "conf.d/access_log.conf" include "conf.d/debug.conf" server.event-handler = "linux-sysepoll" server.network-backend = "linux-sendfile" server.stat-cache-engine = "simple" url.access-deny = ( "~", ".inc" ) include "conf.d/mime.conf" include "conf.d/dirlisting.conf" server.follow-symlink = "enable" server.upload-dirs = ( "/var/tmp" ) server.modules += ( "mod_expire" ) server.modules += ( "mod_proxy" ) server.modules += ( "mod_scgi" ) server.max-fds = 20000 server.max-connections = 10000 server.max-keep-alive-requests = 5000 server.max-keep-alive-idle = 10 server.max-read-idle = 10 server.max-write-idle = 10 server.document-root = server_root + "/empty" $HTTP["url"] =~ "\.nocache\." { expire.url = ( "" => "access plus 0 seconds" ) } $HTTP["url"] =~ "\.cache\." { expire.url = ( "" => "access plus 1 years" ) } $HTTP["url"] =~ "^/jsproxy/" { scgi.server = ("" => (( "host" => "localhost", "port" => 4433, "disable-time" => 2, "check-local" => "disable") ) ) }