[build_cmake] clock_gettime() -lrt w/ glibc < 2.17 (fixes #2737)
[lighttpd.git] / tests / bug-12.conf
blob8ca79153013a61d8af24f05a326070ea790bc47d
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 ## bind to port (default: 80)
4 server.port                 = 2048
6 ## bind to localhost (default: all interfaces)
7 server.bind                = "localhost"
8 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
9 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
10 server.name                = "www.example.org"
11 server.tag                 = "Apache 1.3.29"
14 server.dir-listing = "enable"
16 server.modules = (
17         "mod_rewrite",
18         "mod_setenv",
19         "mod_access",
20         "mod_auth",
21         "mod_status",
22         "mod_expire",
23         "mod_simple_vhost",
24         "mod_redirect",
25         "mod_fastcgi",
26         "mod_compress",
27         "mod_accesslog",
30 server.indexfiles = (
31         "index.html",
32         "index.htm",
33         "default.htm",
34         "index.php",
37 server.error-handler-404 = "/indexfile/return-404.php"
39 ######################## MODULE CONFIG ############################
41 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
43 mimetype.assign = (
44         ".png"  => "image/png",
45         ".jpg"  => "image/jpeg",
46         ".jpeg" => "image/jpeg",
47         ".gif"  => "image/gif",
48         ".html" => "text/html",
49         ".htm"  => "text/html",
50         ".pdf"  => "application/pdf",
51         ".swf"  => "application/x-shockwave-flash",
52         ".spl"  => "application/futuresplash",
53         ".txt"  => "text/plain",
54         ".tar.gz" =>   "application/x-tgz",
55         ".tgz"  => "application/x-tgz",
56         ".gz"   => "application/x-gzip",
57         ".c"    => "text/plain",
58         ".conf" => "text/plain",
61 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
62 compress.filetype = (
63         "text/plain",
64         "text/html",
67 setenv.add-environment = (
68         "TRAC_ENV" => "foo",
70 setenv.add-request-header = (
71         "FOO" => "foo",
73 setenv.add-response-header = (
74         "BAR" => "foo",
77 fastcgi.debug = 0
78 fastcgi.server = ( ".php" => (
79         "grisu" => (
80                 "host" => "127.0.0.1",
81                 "port" => 1026,
82         ),
85 auth.backend                 = "plain"
86 auth.backend.plain.userfile  = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
87 auth.backend.plain.groupfile = "lighttpd.group"
89 auth.backend.ldap.hostname  = "localhost"
90 auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
91 auth.backend.ldap.filter    = "(uid=$)"
93 auth.require = (
94         "/server-status" => (
95                 "method"  => "digest",
96                 "realm"   => "download archiv",
97                 "require" => "group=www|user=jan|host=192.168.2.10",
98         ),
99         "/auth.php" => (
100                 "method"  => "basic",
101                 "realm"   => "download archiv",
102                 "require" => "user=jan",
103         ),
104         "/server-config" => (
105                 "method"  => "basic",
106                 "realm"   => "download archiv",
107                 "require" => "group=www|user=jan|host=192.168.2.10",
108         ),
111 url.access-deny = (
112         "~",
113         ".inc",
116 url.redirect = (
117         "^/redirect/$" => "http://localhost:2048/",
120 expire.url = (
121         "/buggy/" => "access 2 hours",
122         "/asdhas/" => "access plus 1 seconds 2 minutes",
125 #### status module
126 status.status-url = "/server-status"
127 status.config-url = "/server-config"
129 simple-vhost.document-root  = "pages"
130 simple-vhost.server-root    = env.SRCDIR + "/tmp/lighttpd/servers/"
131 simple-vhost.default-host   = "www.example.org"
133 $HTTP["host"] == "vvv.example.org" {
134         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
137 $HTTP["host"] == "zzz.example.org" {
138         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
139         server.name = "zzz.example.org"