drain backend socket/pipe bufs upon FDEVENT_HUP
[lighttpd.git] / tests / fastcgi-responder.conf
blobd15760dcd044ddee0a3d0ae9fb197d976d9f82fd
1 server.document-root         = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
3 #debug.log-request-header   = "enable"
4 #debug.log-response-header  = "enable"
5 #debug.log-request-handling = "enable"
6 #debug.log-state-handling = "enable"
8 #fastcgi.debug = 1
10 ## bind to port (default: 80)
11 server.port                 = 2048
13 ## bind to localhost (default: all interfaces)
14 server.bind                = "localhost"
15 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
16 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
17 server.name                = "www.example.org"
18 server.tag                 = "Apache 1.3.29"
20 server.dir-listing          = "enable"
22 server.modules = (
23         "mod_rewrite",
24         "mod_access",
25         "mod_auth",
26         "mod_status",
27         "mod_expire",
28         "mod_redirect",
29         "mod_fastcgi",
30         "mod_cgi",
31         "mod_compress",
32         "mod_accesslog",
35 server.indexfiles = (
36         "index.php",
37         "index.html",
38         "index.htm",
39         "default.htm",
42 ######################## MODULE CONFIG ############################
45 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
47 mimetype.assign = (
48         ".png"  => "image/png",
49         ".jpg"  => "image/jpeg",
50         ".jpeg" => "image/jpeg",
51         ".gif"  => "image/gif",
52         ".html" => "text/html",
53         ".htm"  => "text/html",
54         ".pdf"  => "application/pdf",
55         ".swf"  => "application/x-shockwave-flash",
56         ".spl"  => "application/futuresplash",
57         ".txt"  => "text/plain",
58         ".tar.gz" =>   "application/x-tgz",
59         ".tgz"  => "application/x-tgz",
60         ".gz"   => "application/x-gzip",
61         ".c"    => "text/plain",
62         ".conf" => "text/plain",
65 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
66 compress.filetype = (
67         "text/plain",
68         "text/html",
71 fastcgi.debug = 0
72 fastcgi.server = (
73         ".fcgi" => (
74                 "grisu" => (
75                         "host" => "127.0.0.1",
76                         "port" => 10000,
77                         "bin-path" => env.SRCDIR + "/fcgi-responder",
78                         "check-local" => "disable",
79                         "max-procs" => 1,
80                         "min-procs" => 1,
81                 ),
82         ),
85 cgi.assign = (
86         ".pl"  => env.PERL,
87         ".cgi" => env.PERL,
90 auth.backend                = "plain"
91 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
92 auth.backend.plain.groupfile = "lighttpd.group"
94 auth.backend.ldap.hostname  = "localhost"
95 auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
96 auth.backend.ldap.filter    = "(uid=$)"
98 auth.require = (
99         "/server-status" => (
100                 "method"  => "digest",
101                 "realm"   => "download archiv",
102                 "require" => "group=www|user=jan|host=192.168.2.10",
103         ),
104         "/auth.php" => (
105                 "method"  => "basic",
106                 "realm"   => "download archiv",
107                 "require" => "user=jan",
108         ),
109         "/server-config" => (
110                 "method"  => "basic",
111                 "realm"   => "download archiv",
112                 "require" => "group=www|user=jan|host=192.168.2.10",
113         ),
116 url.access-deny = (
117         "~",
118         ".inc",
121 url.redirect = (
122         "^/redirect/$" => "http://localhost:2048/",
125 expire.url = (
126         "/buggy/" => "access 2 hours",
127         "/asdhas/" => "access plus 1 seconds 2 minutes",
130 #### status module
131 status.status-url = "/server-status"
132 status.config-url = "/server-config"
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"
143 $HTTP["host"] == "wsgi.example.org" {
144         fastcgi.server = (
145                 "/" => ( (
146                         "host" => "127.0.0.1", "port" => 10000,
147                         "fix-root-scriptname" => "enable",
148                         "check-local" => "disable",
149                         "bin-path" => env.SRCDIR + "/fcgi-responder",
150                         "max-procs" => 1,
151                 ) ),
152         )