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