2006-09-07 11:11:30 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2018-12-11 03:35:21 +00:00
|
|
|
debug.log-request-header = "enable"
|
|
|
|
debug.log-response-header = "enable"
|
|
|
|
debug.log-request-handling = "enable"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
## bind to port (default: 80)
|
|
|
|
server.port = 2048
|
|
|
|
|
|
|
|
## bind to localhost (default: all interfaces)
|
|
|
|
server.bind = "localhost"
|
2006-09-07 11:11:30 +00:00
|
|
|
server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
|
2009-07-01 16:16:40 +00:00
|
|
|
server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
|
2005-02-20 14:27:00 +00:00
|
|
|
server.name = "www.example.org"
|
|
|
|
server.tag = "Apache 1.3.29"
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
server.modules = (
|
2020-12-23 05:38:43 +00:00
|
|
|
"mod_auth",
|
|
|
|
"mod_authn_file",
|
2015-08-22 20:51:08 +00:00
|
|
|
"mod_fastcgi",
|
|
|
|
"mod_accesslog",
|
|
|
|
)
|
|
|
|
|
|
|
|
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
|
|
|
|
|
2018-12-11 03:35:21 +00:00
|
|
|
$HTTP["host"] == "auth.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
|
2020-12-23 05:38:43 +00:00
|
|
|
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 = (
|
2018-12-11 03:35:21 +00:00
|
|
|
"/" => (
|
|
|
|
"grisu-auth" => (
|
|
|
|
"host" => "127.0.0.1",
|
2020-12-23 05:38:43 +00:00
|
|
|
"port" => 10000,
|
2020-12-21 02:32:50 +00:00
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
2020-12-23 05:38:43 +00:00
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
2018-12-11 03:35:21 +00:00
|
|
|
"check-local" => "disable",
|
2020-12-23 05:38:43 +00:00
|
|
|
"max-procs" => 1,
|
|
|
|
"mode" => "authorizer",
|
2018-12-11 03:35:21 +00:00
|
|
|
),
|
|
|
|
"grisu-resp" => (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 10000,
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
2020-12-23 05:38:43 +00:00
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
2018-12-11 03:35:21 +00:00
|
|
|
"check-local" => "disable",
|
|
|
|
"max-procs" => 1,
|
|
|
|
),
|
|
|
|
),
|
2020-12-23 05:38:43 +00:00
|
|
|
)
|
2015-08-22 20:51:08 +00:00
|
|
|
|
2018-12-11 03:35:21 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
|
2020-12-23 05:38:43 +00:00
|
|
|
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,
|
|
|
|
) ),
|
2015-08-22 20:51:08 +00:00
|
|
|
".fcgi" => (
|
|
|
|
"grisu" => (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 10000,
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
2020-12-23 05:38:43 +00:00
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
2015-08-22 20:51:08 +00:00
|
|
|
"check-local" => "disable",
|
|
|
|
"max-procs" => 1,
|
|
|
|
),
|
|
|
|
),
|
2020-12-23 05:38:43 +00:00
|
|
|
)
|
2015-08-22 20:51:08 +00:00
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
2009-04-01 17:35:17 +00:00
|
|
|
$HTTP["host"] == "wsgi.example.org" {
|
|
|
|
fastcgi.server = (
|
2015-08-22 20:51:08 +00:00
|
|
|
"/" => ( (
|
2020-12-23 05:38:43 +00:00
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 10000,
|
2015-08-22 20:51:08 +00:00
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
2020-12-23 05:38:43 +00:00
|
|
|
"bin-copy-environment" => ( "PATH", "SHELL", "USER", ),
|
|
|
|
"check-local" => "disable",
|
|
|
|
"fix-root-scriptname" => "enable",
|
2015-08-22 20:51:08 +00:00
|
|
|
"max-procs" => 1,
|
|
|
|
) ),
|
2009-04-01 17:35:17 +00:00
|
|
|
)
|
|
|
|
}
|