]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd-php-external.conf
- applied in svn
[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" => ((
62beb50b 14 "socket" => "/var/run/php/fcgi.sock",
7e63f560
ER
15 # we enable check-local so you can use server.error-handler-404 for php files too
16 "check-local" => "enable",
20dda7b2 17 "disable-time" => 1,
e21e69b0 18# "allow-x-send-file" => "enable",
a56cbb6a
ER
19 ))
20)
21
ffad21ad 22#fastcgi.server += (
67dd6603
ER
23# ".php" => (
24# "local" => (
25# "host" => "127.0.0.1",
418bf394 26# "port" => 1026,
67dd6603
ER
27# # we enable check-local so you can use server.error-handler-404 for php files too
28# "check-local" => "enable",
29# ),
30# "slave" => (
31# "host" => "192.168.5.93",
418bf394 32# "port" => 1026,
67dd6603
ER
33# # we enable check-local so you can use server.error-handler-404 for php files too
34# "check-local" => "enable",
35# ),
36# ),
ffad21ad 37#)
ed8900c9
ER
38
39static-file.exclude-extensions += (".php")
This page took 0.037162 seconds and 4 git commands to generate.