Annotation of embedaddon/lighttpd/tests/condition.conf, revision 1.1.1.1
1.1 misho 1:
2: debug.log-request-handling = "enable"
3: debug.log-condition-handling = "enable"
4:
5: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
6:
7: ## bind to port (default: 80)
8: server.port = 2048
9:
10: ## bind to localhost (default: all interfaces)
11: server.bind = "localhost"
12: server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13: server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14: server.name = "www.example.org"
15: server.tag = "Apache 1.3.29"
16:
17:
18: server.modules = (
19: "mod_redirect",
20: "mod_accesslog" )
21:
22: ######################## MODULE CONFIG ############################
23:
24:
25: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
26:
27: mimetype.assign = ( ".html" => "text/html" )
28:
29: url.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: }
36: else $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
42: else $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:
50: else $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:
61: else $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: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>