]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd-php-external.conf
up to 1.4.38
[packages/lighttpd.git] / lighttpd-php-external.conf
CommitLineData
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
12fastcgi.server += (
13 ".php" => ((
c4777a94
ER
14 "socket" => "/var/run/php/php-fpm.sock", # spawned by php-fpm
15# "socket" => "/var/run/php/fcgi.sock", # spawned by php-fcgi-init
7e63f560
ER
16 # we enable check-local so you can use server.error-handler-404 for php files too
17 "check-local" => "enable",
20dda7b2 18 "disable-time" => 1,
e21e69b0 19# "allow-x-send-file" => "enable",
3c13a630
ER
20 )),
21
22# for this to work set in /etc/php/php-fpm.conf:
23# pm.status_path = /fpm-status
24# "/fpm-status" => ((
25# "socket" => "/var/run/php/fpm.sock",
26# "check-local" => "disable",
27# "disable-time" => 1,
28# )),
a56cbb6a
ER
29)
30
ffad21ad 31#fastcgi.server += (
67dd6603
ER
32# ".php" => (
33# "local" => (
34# "host" => "127.0.0.1",
418bf394 35# "port" => 1026,
67dd6603
ER
36# # we enable check-local so you can use server.error-handler-404 for php files too
37# "check-local" => "enable",
38# ),
39# "slave" => (
40# "host" => "192.168.5.93",
418bf394 41# "port" => 1026,
67dd6603
ER
42# # we enable check-local so you can use server.error-handler-404 for php files too
43# "check-local" => "enable",
44# ),
45# ),
ffad21ad 46#)
ed8900c9
ER
47
48static-file.exclude-extensions += (".php")
This page took 0.113582 seconds and 4 git commands to generate.