[mod_cgi] FreeBSD 9.3/MacOSX does not have pipe2() (fixes #2765)
[lighttpd.git] / tests / condition.conf
blob7e1c5cae7584d1e925165af9d71ccd8e9e52b1a3
2 debug.log-request-handling = "enable"
3 debug.log-condition-handling = "enable"
5 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
7 ## bind to port (default: 80)
8 server.port                 = 2048
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"
18 server.modules = (
19         "mod_redirect",
20         "mod_accesslog",
23 ######################## MODULE CONFIG ############################
26 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
28 mimetype.assign = (
29         ".html" => "text/html",
32 url.redirect = (
33         "^" => "/default",
36 $HTTP["host"] == "www.example.org" {
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         )
43 else $HTTP["host"] == "test1.example.org" {
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         )
50 # comments
51 else $HTTP["host"] == "test2.example.org" {
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         )
59          # comments
61 else $HTTP["host"] == "test3.example.org" {
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         )
68         # comments
69         $HTTP["url"] == "/index.html" {
70                 url.redirect = (
71                         "^" => "/match_5",
72                 )
73         }
76 else $HTTP["host"] == "test4.example.org" {
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         )
83         $HTTP["url"] =~ "^/subdir/" {
84                 url.redirect = (
85                         "^" => "/match_7",
86                 )
87         }
90 $HTTP["url"] != "/show/other/server-tag" {
92 else $HTTP["scheme"] == "http" {
93         server.tag = "special tag"