2005-08-08 13:48:33 +00:00
|
|
|
|
|
|
|
debug.log-request-handling = "enable"
|
|
|
|
debug.log-condition-handling = "enable"
|
|
|
|
|
2006-09-07 11:11:30 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
2005-08-08 13:48:33 +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-08-08 13:48:33 +00:00
|
|
|
server.name = "www.example.org"
|
|
|
|
server.tag = "Apache 1.3.29"
|
|
|
|
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
server.modules = (
|
|
|
|
"mod_redirect",
|
|
|
|
"mod_accesslog",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
|
|
|
|
######################## MODULE CONFIG ############################
|
|
|
|
|
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
|
2005-08-08 13:48:33 +00:00
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
mimetype.assign = (
|
|
|
|
".html" => "text/html",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
|
2015-08-22 20:51:08 +00:00
|
|
|
url.redirect = (
|
|
|
|
"^" => "/default",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
|
|
|
|
$HTTP["host"] == "www.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
server.name = "www.example.org"
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_1",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
}
|
2005-08-08 16:34:49 +00:00
|
|
|
else $HTTP["host"] == "test1.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
server.name = "test1.example.org"
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_2",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
}
|
|
|
|
# comments
|
2005-08-08 16:34:49 +00:00
|
|
|
else $HTTP["host"] == "test2.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
server.name = "test2.example.org"
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_3",
|
|
|
|
)
|
2005-08-08 13:48:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# comments
|
|
|
|
|
2005-08-08 16:34:49 +00:00
|
|
|
else $HTTP["host"] == "test3.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
server.name = "test3.example.org"
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_4",
|
|
|
|
)
|
|
|
|
|
|
|
|
# comments
|
|
|
|
$HTTP["url"] == "/index.html" {
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_5",
|
|
|
|
)
|
|
|
|
}
|
2005-08-08 13:48:33 +00:00
|
|
|
}
|
2011-02-10 07:56:11 +00:00
|
|
|
|
|
|
|
else $HTTP["host"] == "test4.example.org" {
|
2015-08-22 20:51:08 +00:00
|
|
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
|
|
|
|
server.name = "test4.example.org"
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_6",
|
|
|
|
)
|
|
|
|
|
|
|
|
$HTTP["url"] =~ "^/subdir/" {
|
|
|
|
url.redirect = (
|
|
|
|
"^" => "/match_7",
|
|
|
|
)
|
|
|
|
}
|
2011-02-10 07:56:11 +00:00
|
|
|
}
|