X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=lighttpd-php-spawned.conf;h=b9869aea8e270eaaa18f9e164bd4d00abbfe4b90;hb=52788937e3635fd34f1a152707aa78ce22f5b0e9;hp=6c5e0fe2429e1c3eb272d282380764c3b2c1bd66;hpb=a56cbb6a863673a7ffba8ab83539e65b0ee2800c;p=packages%2Flighttpd.git diff --git a/lighttpd-php-spawned.conf b/lighttpd-php-spawned.conf index 6c5e0fe..b9869ae 100644 --- a/lighttpd-php-spawned.conf +++ b/lighttpd-php-spawned.conf @@ -1,17 +1,34 @@ # FastCGI server for PHP + +# Sometimes you need to run old html file(s) as php pages, especially if you +# are migrating from Apache web server. To treat html pages as php you need to +# map multiple extensions to the same fastcgi server using fastcgi.map-extensions +# directive. +#fastcgi.map-extensions = ( +# ".html" => ".php", +# ".php3" => ".php", +#) + fastcgi.server += ( ".php" => (( "bin-path" => "/usr/bin/php.fcgi", "socket" => "/var/run/php/php-fcgi-" + var.pid + ".sock", "max-procs" => 2, "idle-timeout" => 20, + # SIGTERM is graceful shutdown in PLD Linux, use `kill -l' to figure out other signal numbers. +# "kill-signal" => 15, "bin-environment" => ( "PHP_FCGI_CHILDREN" => "4", "PHP_FCGI_MAX_REQUESTS" => "10000" ), "bin-copy-environment" => ( - "PATH", "SHELL", "USER" + "PATH", "SHELL" ), - "broken-scriptfilename" => "enable" + "broken-scriptfilename" => "enable", + "check-local" => "enable", + "disable-time" => 1, +# "allow-x-send-file" => "enable", )) ) + +static-file.exclude-extensions += (".php")