1debug.log-request-handling = "enable" 2debug.log-condition-handling = "enable" 3 4server.systemd-socket-activation = "enable" 5# optional bind spec override, e.g. for platforms without socket activation 6include env.SRCDIR + "/tmp/bind*.conf" 7 8server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 9server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" 10server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" 11server.name = "www.example.org" 12server.tag = "lighttpd-1.4.x" 13 14server.compat-module-load = "disable" 15server.modules = ( 16 "mod_redirect", 17 "mod_accesslog", 18 "mod_staticfile", 19) 20 21accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 22 23mimetype.assign = ( 24 ".html" => "text/html", 25) 26 27url.redirect = ( 28 "" => "/default", 29) 30 31$HTTP["host"] == "www.example.org" { 32 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 33 server.name = "www.example.org" 34 url.redirect = ( 35 "" => "/match_1", 36 ) 37} 38else $HTTP["host"] == "test1.example.org" { 39 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 40 server.name = "test1.example.org" 41 url.redirect = ( 42 "" => "/match_2", 43 ) 44} 45# comments 46else $HTTP["host"] == "test2.example.org" { 47 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 48 server.name = "test2.example.org" 49 url.redirect = ( 50 "" => "/match_3", 51 ) 52} 53 54 # comments 55 56else $HTTP["host"] == "test3.example.org" { 57 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 58 server.name = "test3.example.org" 59 url.redirect = ( 60 "" => "/match_4", 61 ) 62 63 # comments 64 $HTTP["url"] == "/index.html" { 65 url.redirect = ( 66 "" => "/match_5", 67 ) 68 } 69} 70 71else $HTTP["host"] == "test4.example.org" { 72 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 73 server.name = "test4.example.org" 74 url.redirect = ( 75 "" => "/match_6", 76 ) 77 78 $HTTP["url"] =^ "/subdir/" { 79 url.redirect = ( 80 "" => "/match_7", 81 ) 82 } 83} 84else $HTTP["host"] == "test.example.org" { 85 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 86 server.name = "test.example.org" 87 var.myvar = "good" 88 var.one = 1 89 include env.condition_include_file 90} 91 92$HTTP["url"] != "/show/other/server-tag" { 93} 94else $HTTP["scheme"] == "http" { 95 server.tag = "special tag" 96} 97