[autobuild] allow sendfile() in cross-compile (fixes #2836)
[lighttpd.git] / tests / bug-12.conf
blobdda4423895d645f6e28d52c52bbf3882fa649bab
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_authn_file",
22         "mod_status",
23         "mod_expire",
24         "mod_simple_vhost",
25         "mod_redirect",
26         "mod_fastcgi",
27         "mod_compress",
28         "mod_accesslog",
31 server.indexfiles = (
32         "index.html",
33         "index.htm",
34         "default.htm",
35         "index.php",
38 server.error-handler-404 = "/indexfile/return-404.php"
40 ######################## MODULE CONFIG ############################
42 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
44 mimetype.assign = (
45         ".png"  => "image/png",
46         ".jpg"  => "image/jpeg",
47         ".jpeg" => "image/jpeg",
48         ".gif"  => "image/gif",
49         ".html" => "text/html",
50         ".htm"  => "text/html",
51         ".pdf"  => "application/pdf",
52         ".swf"  => "application/x-shockwave-flash",
53         ".spl"  => "application/futuresplash",
54         ".txt"  => "text/plain",
55         ".tar.gz" =>   "application/x-tgz",
56         ".tgz"  => "application/x-tgz",
57         ".gz"   => "application/x-gzip",
58         ".c"    => "text/plain",
59         ".conf" => "text/plain",
62 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
63 compress.filetype = (
64         "text/plain",
65         "text/html",
68 setenv.add-environment = (
69         "TRAC_ENV" => "foo",
71 setenv.add-request-header = (
72         "FOO" => "foo",
74 setenv.add-response-header = (
75         "BAR" => "foo",
78 fastcgi.debug = 0
79 fastcgi.server = ( ".php" => (
80         "grisu" => (
81                 "host" => "127.0.0.1",
82                 "port" => 1026,
83         ),
86 auth.backend                 = "plain"
87 auth.backend.plain.userfile  = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
88 auth.backend.plain.groupfile = "lighttpd.group"
90 #auth.backend.ldap.hostname  = "localhost"
91 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
92 #auth.backend.ldap.filter    = "(uid=$)"
94 auth.require = (
95         "/server-status" => (
96                 "method"  => "digest",
97                 "realm"   => "download archiv",
98                 "require" => "group=www|user=jan|host=192.168.2.10",
99         ),
100         "/auth.php" => (
101                 "method"  => "basic",
102                 "realm"   => "download archiv",
103                 "require" => "user=jan",
104         ),
105         "/server-config" => (
106                 "method"  => "basic",
107                 "realm"   => "download archiv",
108                 "require" => "group=www|user=jan|host=192.168.2.10",
109         ),
112 url.access-deny = (
113         "~",
114         ".inc",
117 url.redirect = (
118         "^/redirect/$" => "http://localhost:2048/",
121 expire.url = (
122         "/buggy/" => "access 2 hours",
123         "/asdhas/" => "access plus 1 seconds 2 minutes",
126 #### status module
127 status.status-url = "/server-status"
128 status.config-url = "/server-config"
130 simple-vhost.document-root  = "pages"
131 simple-vhost.server-root    = env.SRCDIR + "/tmp/lighttpd/servers/"
132 simple-vhost.default-host   = "www.example.org"
134 $HTTP["host"] == "vvv.example.org" {
135         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
138 $HTTP["host"] == "zzz.example.org" {
139         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
140         server.name = "zzz.example.org"