[mod_cgi] FreeBSD 9.3/MacOSX does not have pipe2() (fixes #2765)
[lighttpd.git] / tests / lowercase.conf
blob4ca73c194270565f5acaddcbd5e422f0ceee364f
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"
11 server.force-lowercase-filenames = "enable"
13 server.dir-listing          = "enable"
15 server.modules = (
16         "mod_rewrite",
17         "mod_setenv",
18         "mod_secdownload",
19         "mod_access",
20         "mod_auth",
21         "mod_status",
22         "mod_expire",
23         "mod_redirect",
24         "mod_fastcgi",
25         "mod_cgi",
28 server.indexfiles = (
29         "index.php",
30         "index.html",
31         "index.htm",
32         "default.htm",
36 ######################## MODULE CONFIG ############################
38 mimetype.assign = (
39         ".png"  => "image/png",
40         ".jpg"  => "image/jpeg",
41         ".jpeg" => "image/jpeg",
42         ".gif"  => "image/gif",
43         ".html" => "text/html",
44         ".htm"  => "text/html",
45         ".pdf"  => "application/pdf",
46         ".swf"  => "application/x-shockwave-flash",
47         ".spl"  => "application/futuresplash",
48         ".txt"  => "text/plain",
49         ".tar.gz" =>   "application/x-tgz",
50         ".tgz"  => "application/x-tgz",
51         ".gz"   => "application/x-gzip",
52         ".c"    => "text/plain",
53         ".conf" => "text/plain",
56 fastcgi.debug = 0
57 fastcgi.server = (
58         ".php" => ( (
59                         "host" => "127.0.0.1",
60                         "port" => 1026,
61                         "broken-scriptfilename" => "enable",
62         ) ),
63         "/prefix.fcgi" => ( (
64                 "host" => "127.0.0.1",
65                 "port" => 1026,
66                 "check-local" => "disable",
67                 "broken-scriptfilename" => "enable",
68         ) ),
71 cgi.assign = (
72         ".pl"  => env.PERL,
73         ".cgi" => env.PERL,
76 auth.backend = "plain"
77 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
79 auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
81 $HTTP["host"] == "lowercase-auth" {
82         auth.require = (
83                 "/image.jpg" => (
84                         "method"  => "digest",
85                         "realm"   => "download archiv",
86                         "require" => "valid-user",
87                 ),
88         )
91 $HTTP["host"] == "lowercase-deny" {
92         url.access-deny = (
93                 ".jpg",
94         )
97 $HTTP["host"] == "lowercase-exclude" {
98         static-file.exclude-extensions = (
99                 ".jpg",
100         )