Annotation of embedaddon/lighttpd/tests/condition.conf, revision 1.1.1.2
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:
1.1.1.2 ! misho 18: server.modules = (
! 19: "mod_redirect",
! 20: "mod_accesslog",
! 21: )
1.1 misho 22:
23: ######################## MODULE CONFIG ############################
24:
25:
1.1.1.2 ! misho 26: accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
1.1 misho 27:
1.1.1.2 ! misho 28: mimetype.assign = (
! 29: ".html" => "text/html",
! 30: )
! 31:
! 32: url.redirect = (
! 33: "^" => "/default",
! 34: )
1.1 misho 35:
36: $HTTP["host"] == "www.example.org" {
1.1.1.2 ! misho 37: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 38: server.name = "www.example.org"
! 39: url.redirect = (
! 40: "^" => "/match_1",
! 41: )
1.1 misho 42: }
43: else $HTTP["host"] == "test1.example.org" {
1.1.1.2 ! misho 44: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 45: server.name = "test1.example.org"
! 46: url.redirect = (
! 47: "^" => "/match_2",
! 48: )
1.1 misho 49: }
50: # comments
51: else $HTTP["host"] == "test2.example.org" {
1.1.1.2 ! misho 52: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 53: server.name = "test2.example.org"
! 54: url.redirect = (
! 55: "^" => "/match_3",
! 56: )
1.1 misho 57: }
58:
59: # comments
60:
61: else $HTTP["host"] == "test3.example.org" {
1.1.1.2 ! misho 62: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 63: server.name = "test3.example.org"
! 64: url.redirect = (
! 65: "^" => "/match_4",
! 66: )
! 67:
! 68: # comments
! 69: $HTTP["url"] == "/index.html" {
! 70: url.redirect = (
! 71: "^" => "/match_5",
! 72: )
! 73: }
1.1 misho 74: }
75:
76: else $HTTP["host"] == "test4.example.org" {
1.1.1.2 ! misho 77: server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
! 78: server.name = "test4.example.org"
! 79: url.redirect = (
! 80: "^" => "/match_6",
! 81: )
! 82:
! 83: $HTTP["url"] =~ "^/subdir/" {
! 84: url.redirect = (
! 85: "^" => "/match_7",
! 86: )
! 87: }
! 88: }
! 89:
! 90: $HTTP["url"] != "/show/other/server-tag" {
! 91: }
! 92: else $HTTP["scheme"] == "http" {
! 93: server.tag = "special tag"
1.1 misho 94: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>