|
|
|
@ -24,40 +24,23 @@ server.indexfiles = (
|
|
|
|
|
|
|
|
|
|
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
|
|
|
|
|
|
|
|
|
|
$HTTP["host"] == "bin-env.example.org" {
|
|
|
|
|
|
|
|
|
|
fastcgi.server = (
|
|
|
|
|
".php" => (
|
|
|
|
|
"grisu" => (
|
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
|
"port" => 1048,
|
|
|
|
|
"bin-path" => env.PHP,
|
|
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
fastcgi.debug = 0
|
|
|
|
|
fastcgi.server = (
|
|
|
|
|
".php" => ( (
|
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
|
"port" => 1026,
|
|
|
|
|
"broken-scriptfilename" => "enable",
|
|
|
|
|
"bin-path" => env.PHP,
|
|
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
|
|
|
"allow-x-send-file" => "enable",
|
|
|
|
|
) ),
|
|
|
|
|
"/prefix.fcgi" => ( (
|
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
|
"port" => 1026,
|
|
|
|
|
"check-local" => "disable",
|
|
|
|
|
"broken-scriptfilename" => "enable",
|
|
|
|
|
"bin-path" => env.PHP,
|
|
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
|
|
|
) ),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
server.error-handler-404 = "/indexfile/return-404.php"
|
|
|
|
|
|
|
|
|
|
$HTTP["host"] == "zzz.example.org" {
|
|
|
|
@ -65,7 +48,6 @@ $HTTP["host"] == "zzz.example.org" {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$HTTP["host"] == "auth.example.org" {
|
|
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
|
server.name = "auth.example.org"
|
|
|
|
|
auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
|
|
|
|
|
auth.backend = "htpasswd"
|
|
|
|
|