You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.7 KiB
Plaintext
112 lines
2.7 KiB
Plaintext
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
debug.log-request-header = "enable"
|
|
debug.log-response-header = "enable"
|
|
debug.log-request-handling = "enable"
|
|
|
|
## bind to port (default: 80)
|
|
server.port = 2048
|
|
|
|
## bind to localhost (default: all interfaces)
|
|
server.bind = "localhost"
|
|
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
|
|
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
|
|
server.name = "www.example.org"
|
|
server.tag = "Apache 1.3.29"
|
|
|
|
server.compat-module-load = "disable"
|
|
server.modules = (
|
|
"mod_auth",
|
|
"mod_authn_file",
|
|
"mod_fastcgi",
|
|
"mod_accesslog",
|
|
)
|
|
|
|
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
|
|
|
|
$HTTP["host"] == "auth.example.org" {
|
|
|
|
server.name = "auth.example.org"
|
|
|
|
$HTTP["url"] =~ "\.php$" {
|
|
auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
|
|
auth.backend = "htpasswd"
|
|
auth.require = (
|
|
"" => (
|
|
"method" => "basic",
|
|
"realm" => "download archiv",
|
|
"require" => "valid-user",
|
|
),
|
|
)
|
|
}
|
|
|
|
fastcgi.debug = 0
|
|
fastcgi.server = (
|
|
"/" => (
|
|
"grisu-auth" => (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
"check-local" => "disable",
|
|
"max-procs" => 1,
|
|
"mode" => "authorizer",
|
|
),
|
|
"grisu-resp" => (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
"check-local" => "disable",
|
|
"max-procs" => 1,
|
|
),
|
|
),
|
|
)
|
|
|
|
}
|
|
else {
|
|
|
|
fastcgi.debug = 0
|
|
fastcgi.server = (
|
|
".php" => ( (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
"check-local" => "disable",
|
|
"max-procs" => 1,
|
|
) ),
|
|
"/prefix.fcgi" => ( (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"max-procs" => 1,
|
|
) ),
|
|
".fcgi" => (
|
|
"grisu" => (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
"check-local" => "disable",
|
|
"max-procs" => 1,
|
|
),
|
|
),
|
|
)
|
|
|
|
}
|
|
|
|
$HTTP["host"] == "wsgi.example.org" {
|
|
fastcgi.server = (
|
|
"/" => ( (
|
|
"host" => "127.0.0.1",
|
|
"port" => 10000,
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
"check-local" => "disable",
|
|
"fix-root-scriptname" => "enable",
|
|
"max-procs" => 1,
|
|
) ),
|
|
)
|
|
}
|