1 2debug.log-request-handling = "enable" 3debug.log-condition-handling = "enable" 4 5server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 6 7## bind to port (default: 80) 8server.port = 2048 9 10## bind to localhost (default: all interfaces) 11server.bind = "localhost" 12server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" 13server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" 14server.name = "www.example.org" 15server.tag = "Apache 1.3.29" 16 17 18server.modules = ( "mod_redirect", 19 "mod_accesslog" ) 20 21######################## MODULE CONFIG ############################ 22 23 24accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 25 26mimetype.assign = ( ".html" => "text/html" ) 27 28url.redirect = ("^" => "/default") 29 30$HTTP["host"] == "www.example.org" { 31 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 32 server.name = "www.example.org" 33 url.redirect = ("^" => "/redirect") 34} 35$HTTP["host"] == "test.example.org" { 36 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 37 server.name = "test.example.org" 38 var.myvar = "good" 39 var.one = 1 40 include "var-include-sub.conf" 41} 42