[mod_cgi] FreeBSD 9.3/MacOSX does not have pipe2() (fixes #2765)
[lighttpd.git] / tests / bug-06.conf
blob775ce6da9c8054f6a6e0f4b274ebc97a3eaa7f14
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"
13 server.dir-listing          = "enable"
15 server.modules = (
16         "mod_rewrite",
17         "mod_setenv",
18         "mod_access",
19         "mod_auth",
20         "mod_status",
21         "mod_expire",
22         "mod_simple_vhost",
23         "mod_redirect",
24         "mod_fastcgi",
25         "mod_compress",
26         "mod_accesslog",
29 server.indexfiles = (
30         "index.html",
31         "index.htm",
32         "default.htm",
33         "index.php",
36 ######################## MODULE CONFIG ############################
39 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
41 mimetype.assign = (
42         ".png"  => "image/png",
43         ".jpg"  => "image/jpeg",
44         ".jpeg" => "image/jpeg",
45         ".gif"  => "image/gif",
46         ".html" => "text/html",
47         ".htm"  => "text/html",
48         ".pdf"  => "application/pdf",
49         ".swf"  => "application/x-shockwave-flash",
50         ".spl"  => "application/futuresplash",
51         ".txt"  => "text/plain",
52         ".tar.gz" =>   "application/x-tgz",
53         ".tgz"  => "application/x-tgz",
54         ".gz"   => "application/x-gzip",
55         ".c"    => "text/plain",
56         ".conf" => "text/plain",
59 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
60 compress.filetype = (
61         "text/plain",
62         "text/html",
65 setenv.add-environment = (
66         "TRAC_ENV" => "foo",
68 setenv.add-request-header = (
69         "FOO" => "foo",
71 setenv.add-response-header = (
72         "BAR" => "foo",
75 fastcgi.debug = 0
76 fastcgi.server = ( ".php" => (
77         "grisu" => (
78                 "host" => "127.0.0.1",
79                 "port" => 1026,
80         ),
83 auth.backend                 = "plain"
84 auth.backend.plain.userfile  = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
85 auth.backend.plain.groupfile = "lighttpd.group"
87 auth.backend.ldap.hostname   = "localhost"
88 auth.backend.ldap.base-dn    = "dc=my-domain,dc=com"
89 auth.backend.ldap.filter     = "(uid=$)"
91 auth.require = (
92         "/server-status" => (
93                 "method"  => "digest",
94                 "realm"   => "download archiv",
95                 "require" => "group=www|user=jan|host=192.168.2.10",
96         ),
97         "/auth.php" => (
98                 "method"  => "basic",
99                 "realm"   => "download archiv",
100                 "require" => "user=jan",
101         ),
102         "/server-config" => (
103                 "method"  => "basic",
104                 "realm"   => "download archiv",
105                 "require" => "group=www|user=jan|host=192.168.2.10",
106         ),
109 url.access-deny = (
110         "~",
111         ".inc",
114 url.redirect = (
115         "^/redirect/$" => "http://localhost:2048/",
118 expire.url = (
119         "/buggy/" => "access 2 hours",
120         "/asdhas/" => "access plus 1 seconds 2 minutes",
123 #### status module
124 status.status-url = "/server-status"
125 status.config-url = "/server-config"
127 simple-vhost.document-root  = "pages"
128 simple-vhost.server-root    = env.SRCDIR + "/tmp/lighttpd/servers/"
129 simple-vhost.default-host   = "www.example.org"
131 $HTTP["host"] == "vvv.example.org" {
132         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
135 $HTTP["host"] == "zzz.example.org" {
136         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
137         server.name = "zzz.example.org"