]>
Commit | Line | Data |
---|---|---|
a56cbb6a | 1 | # FastCGI server for PHP |
66470434 ER |
2 | |
3 | # Sometimes you need to run old html file(s) as php pages, especially if you | |
4 | # are migrating from Apache web server. To treat html pages as php you need to | |
5 | # map multiple extensions to the same fastcgi server using fastcgi.map-extensions | |
6 | # directive. | |
7 | #fastcgi.map-extensions = ( | |
8 | # ".html" => ".php", | |
9 | # ".php3" => ".php", | |
10 | #) | |
11 | ||
a56cbb6a ER |
12 | fastcgi.server += ( |
13 | ".php" => (( | |
14 | "bin-path" => "/usr/bin/php.fcgi", | |
15 | "socket" => "/var/run/php/php-fcgi-" + var.pid + ".sock", | |
16 | "max-procs" => 2, | |
17 | "idle-timeout" => 20, | |
18 | "bin-environment" => ( | |
19 | "PHP_FCGI_CHILDREN" => "4", | |
20 | "PHP_FCGI_MAX_REQUESTS" => "10000" | |
21 | ), | |
22 | "bin-copy-environment" => ( | |
be3d030f | 23 | "PATH", "SHELL" |
a56cbb6a | 24 | ), |
7e63f560 ER |
25 | "broken-scriptfilename" => "enable", |
26 | "check-local" => "enable", | |
20dda7b2 | 27 | "disable-time" => 1, |
a56cbb6a ER |
28 | )) |
29 | ) | |
ed8900c9 ER |
30 | |
31 | static-file.exclude-extensions += (".php") |