]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-php-external.conf
64ea169e1b366134d27f38ff0364284a529e9919
[packages/lighttpd.git] / lighttpd-php-external.conf
1 # FastCGI server for PHP
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
12 fastcgi.server += (
13         ".php" => ((
14                 "socket" => "/var/run/php/fcgi.sock",
15                 # we enable check-local so you can use server.error-handler-404 for php files too
16                 "check-local" => "enable",
17                 "disable-time" => 1,
18                 "bin-copy-environment" => (
19                         "PATH", "SHELL"
20                 ),
21         ))
22 )
23
24 #fastcgi.server += (
25 #       ".php" => (
26 #               "local" => (
27 #                       "host" => "127.0.0.1",
28 #                       "port" => 1028,
29 #                       # we enable check-local so you can use server.error-handler-404 for php files too
30 #                       "check-local" => "enable",
31 #               ),
32 #               "slave" => (
33 #                       "host" => "192.168.5.93",
34 #                       "port" => 1028,
35 #                       # we enable check-local so you can use server.error-handler-404 for php files too
36 #                       "check-local" => "enable",
37 #               ),
38 #       ),
39 #)
40
41 static-file.exclude-extensions += (".php")
This page took 0.046375 seconds and 3 git commands to generate.