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 = ( 19 "mod_redirect", 20 "mod_accesslog" ) 21 22######################## MODULE CONFIG ############################ 23 24 25accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log" 26 27mimetype.assign = ( ".html" => "text/html" ) 28 29url.redirect = ("^" => "/default") 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 = ("^" => "/match_1") 35} 36else $HTTP["host"] == "test1.example.org" { 37 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 38 server.name = "test1.example.org" 39 url.redirect = ("^" => "/match_2") 40} 41# comments 42else $HTTP["host"] == "test2.example.org" { 43 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 44 server.name = "test2.example.org" 45 url.redirect = ("^" => "/match_3") 46} 47 48 # comments 49 50else $HTTP["host"] == "test3.example.org" { 51 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 52 server.name = "test3.example.org" 53 url.redirect = ("^" => "/match_4") 54 55 # comments 56 $HTTP["url"] == "/index.html" { 57 url.redirect = ("^" => "/match_5") 58 } 59} 60 61else $HTTP["host"] == "test4.example.org" { 62 server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" 63 server.name = "test4.example.org" 64 url.redirect = ("^" => "/match_6") 65 66 $HTTP["url"] =~ "^/subdir/" { 67 url.redirect = ("^" => "/match_7") 68 } 69} 70