From 66470434c37a2886d09510cdd3c540e02e74a828 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 18 Dec 2006 13:36:24 +0000 Subject: [PATCH] - add fastcgi.map-extensions sample Changed files: lighttpd-php-external.conf -> 1.8 lighttpd-php-spawned.conf -> 1.5 --- lighttpd-php-external.conf | 10 ++++++++++ lighttpd-php-spawned.conf | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/lighttpd-php-external.conf b/lighttpd-php-external.conf index 7a57ab3..ede6d0f 100644 --- a/lighttpd-php-external.conf +++ b/lighttpd-php-external.conf @@ -1,4 +1,14 @@ # 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", diff --git a/lighttpd-php-spawned.conf b/lighttpd-php-spawned.conf index 485f403..c864743 100644 --- a/lighttpd-php-spawned.conf +++ b/lighttpd-php-spawned.conf @@ -1,4 +1,14 @@ # 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" => (( "bin-path" => "/usr/bin/php.fcgi", -- 2.44.0