--- embedaddon/lighttpd/tests/var-include.conf 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/var-include.conf 2016/11/02 10:35:00 1.1.1.2 @@ -1,6 +1,6 @@ debug.log-request-handling = "enable" -debug.log-condition-handling = "enable" +#debug.log-condition-handling = "enable" server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" @@ -15,27 +15,35 @@ server.name = "www.example.org" server.tag = "Apache 1.3.29" -server.modules = ( "mod_redirect", - "mod_accesslog" ) +server.modules = ( + "mod_redirect", + "mod_accesslog", +) ######################## MODULE CONFIG ############################ +accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" -accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" +mimetype.assign = ( + ".html" => "text/html", +) -mimetype.assign = ( ".html" => "text/html" ) +url.redirect = ( + "^" => "/default", +) -url.redirect = ("^" => "/default") - $HTTP["host"] == "www.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "www.example.org" - url.redirect = ("^" => "/redirect") + server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + server.name = "www.example.org" + url.redirect = ( + "^" => "/redirect", + ) } + $HTTP["host"] == "test.example.org" { - server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - server.name = "test.example.org" - var.myvar = "good" - var.one = 1 - include "var-include-sub.conf" + server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" + server.name = "test.example.org" + var.myvar = "good" + var.one = 1 + include "var-include-sub.conf" }