From: Joe Presbrey Date: Mon, 13 Jul 2009 20:05:35 +0000 (+0000) Subject: lighttpd.conf: upgrade to lighttpd 1.5 r2522 X-Git-Url: http://andersk.mit.edu/gitweb/sql.git/commitdiff_plain/585b537e01a704df3520a3387fa6b6dd837756ef lighttpd.conf: upgrade to lighttpd 1.5 r2522 git-svn-id: svn://presbrey.mit.edu/sql@176 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- diff --git a/etc/lighttpd/lighttpd.conf b/etc/lighttpd/lighttpd.conf index ff497cb..58606c1 100644 --- a/etc/lighttpd/lighttpd.conf +++ b/etc/lighttpd/lighttpd.conf @@ -1,4 +1,4 @@ -server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_fastcgi", "mod_redirect", "mod_accesslog" ) +server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_proxy_core", "mod_proxy_backend_fastcgi", "mod_redirect", "mod_accesslog" ) server.errorlog = "/var/log/lighttpd/error_log" $HTTP["useragent"] !~ "^check_http" { accesslog.filename = "/var/log/lighttpd/access_log" @@ -7,27 +7,18 @@ etag.use-inode = "disable" index-file.names = ( "index.php", "index.html" ) url.access-deny = ( "~", ".inc", ".svn", "CVS" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) -static-file.etags = "enable" server.port = 80 -#server.bind = "localhost" -#server.error-handler-404 = "/error-handler.html" -#server.error-handler-404 = "/error-handler.php" server.pid-file = "/var/run/lighttpd.pid" server.username = "lighttpd" server.groupname = "lighttpd" -fastcgi.server = ( ".php" => - ( "localhost" => ( - "socket" => "/tmp/php-fastcgi.socket", - "bin-path" => "/usr/bin/php-cgi", - "min-procs" => 2, - "max-procs" => 2, - "bin-environment" => ( - "PHP_FCGI_CHILDREN" => "4", - "PHP_FCGI_MAX_REQUESTS" => "10000" - ), - "broken-scriptfilename" => "enable" - )) - ) + +$PHYSICAL["existing-path"] =~ "\.php$" { + proxy-core.balancer = "round-robin" + proxy-core.allow-x-sendfile = "enable" + proxy-core.protocol = "fastcgi" + proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" ) + proxy-core.max-pool-size = 4 +} server.document-root = "/srv/web/home/" alias.url = ( "/~sql" => "/srv/web" )