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 = (
|
|
|
|
"mod_fastcgi",
|
|
|
|
"mod_accesslog",
|
|
|
|
)
|
|
|
|
|
2019-10-26 03:49:39 +00:00
|
|
|
index-file.names = (
|
2015-08-22 20:51:08 +00:00
|
|
|
"index.php",
|
|
|
|
"index.html",
|
|
|
|
)
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
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
|
|
|
|
2018-12-11 03:35:21 +00:00
|
|
|
fastcgi.debug = 0
|
|
|
|
fastcgi.server = (
|
|
|
|
"/" => (
|
|
|
|
"grisu-auth" => (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 20000,
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-auth",
|
|
|
|
"mode" => "authorizer",
|
|
|
|
"check-local" => "disable",
|
|
|
|
),
|
|
|
|
"grisu-resp" => (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 10000,
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
|
|
"check-local" => "disable",
|
|
|
|
"max-procs" => 1,
|
|
|
|
),
|
|
|
|
),
|
2015-08-22 20:51:08 +00:00
|
|
|
)
|
|
|
|
|
2018-12-11 03:35:21 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
fastcgi.debug = 0
|
|
|
|
fastcgi.server = (
|
|
|
|
".fcgi" => (
|
|
|
|
"grisu" => (
|
|
|
|
"host" => "127.0.0.1",
|
|
|
|
"port" => 10000,
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
|
|
"check-local" => "disable",
|
|
|
|
"max-procs" => 1,
|
|
|
|
"min-procs" => 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$HTTP["host"] == "zzz.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.name = "zzz.example.org"
|
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
|
|
|
"/" => ( (
|
|
|
|
"host" => "127.0.0.1", "port" => 10000,
|
|
|
|
"fix-root-scriptname" => "enable",
|
|
|
|
"check-local" => "disable",
|
|
|
|
"bin-path" => env.SRCDIR + "/fcgi-responder",
|
|
|
|
"max-procs" => 1,
|
|
|
|
) ),
|
2009-04-01 17:35:17 +00:00
|
|
|
)
|
|
|
|
}
|