]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-php-external.conf
also upload to dropin
[packages/lighttpd.git] / lighttpd-php-external.conf
index 0b9877f8b468ce638038db245e2c7a48a0bd584a..73741aad31fff31b7dfde1994c1f0ffcfa14db6f 100644 (file)
@@ -1,20 +1,48 @@
 # 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" => ((
-               "socket" => "/var/run/php/fcgi.sock",
+               "socket" => "/var/run/php/php-fpm.sock", # spawned by php-fpm
+#              "socket" => "/var/run/php/fcgi.sock", # spawned by php-fcgi-init
                # we enable check-local so you can use server.error-handler-404 for php files too
                "check-local" => "enable",
-               "bin-copy-environment" => (
-                       "PATH", "SHELL", "USER"
-               ),
-       ))
+               "disable-time" => 1,
+#        "allow-x-send-file" => "enable",
+       )),
+
+# for this to work set in /etc/php/php-fpm.conf:
+# pm.status_path = /fpm-status
+#      "/fpm-status" => ((
+#              "socket" => "/var/run/php/fpm.sock",
+#              "check-local" => "disable",
+#              "disable-time" => 1,
+#      )),
 )
 
 #fastcgi.server += (
-#      ".php" => ((
-#              "host" => "127.0.0.1",
-#              "port" => 1026,
-#      )),
+#      ".php" => (
+#              "local" => (
+#                      "host" => "127.0.0.1",
+#                      "port" => 1026,
+#                      # we enable check-local so you can use server.error-handler-404 for php files too
+#                      "check-local" => "enable",
+#              ),
+#              "slave" => (
+#                      "host" => "192.168.5.93",
+#                      "port" => 1026,
+#                      # we enable check-local so you can use server.error-handler-404 for php files too
+#                      "check-local" => "enable",
+#              ),
+#      ),
 #)
 
 static-file.exclude-extensions += (".php")
This page took 0.111535 seconds and 4 git commands to generate.