[mod_ssi] produce content in subrequest hook
[lighttpd.git] / tests / fastcgi-responder.conf
blob5e1f9ea8f90bb279474eac54082d40d625d6b336
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_authn_file",
27         "mod_status",
28         "mod_expire",
29         "mod_redirect",
30         "mod_fastcgi",
31         "mod_cgi",
32         "mod_compress",
33         "mod_accesslog",
36 server.indexfiles = (
37         "index.php",
38         "index.html",
39         "index.htm",
40         "default.htm",
43 ######################## MODULE CONFIG ############################
46 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
48 mimetype.assign = (
49         ".png"  => "image/png",
50         ".jpg"  => "image/jpeg",
51         ".jpeg" => "image/jpeg",
52         ".gif"  => "image/gif",
53         ".html" => "text/html",
54         ".htm"  => "text/html",
55         ".pdf"  => "application/pdf",
56         ".swf"  => "application/x-shockwave-flash",
57         ".spl"  => "application/futuresplash",
58         ".txt"  => "text/plain",
59         ".tar.gz" =>   "application/x-tgz",
60         ".tgz"  => "application/x-tgz",
61         ".gz"   => "application/x-gzip",
62         ".c"    => "text/plain",
63         ".conf" => "text/plain",
66 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
67 compress.filetype = (
68         "text/plain",
69         "text/html",
72 fastcgi.debug = 0
73 fastcgi.server = (
74         ".fcgi" => (
75                 "grisu" => (
76                         "host" => "127.0.0.1",
77                         "port" => 10000,
78                         "bin-path" => env.SRCDIR + "/fcgi-responder",
79                         "check-local" => "disable",
80                         "max-procs" => 1,
81                         "min-procs" => 1,
82                 ),
83         ),
86 cgi.assign = (
87         ".pl"  => env.PERL,
88         ".cgi" => env.PERL,
91 auth.backend                = "plain"
92 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
93 auth.backend.plain.groupfile = "lighttpd.group"
95 #auth.backend.ldap.hostname  = "localhost"
96 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
97 #auth.backend.ldap.filter    = "(uid=$)"
99 auth.require = (
100         "/server-status" => (
101                 "method"  => "digest",
102                 "realm"   => "download archiv",
103                 "require" => "group=www|user=jan|host=192.168.2.10",
104         ),
105         "/auth.php" => (
106                 "method"  => "basic",
107                 "realm"   => "download archiv",
108                 "require" => "user=jan",
109         ),
110         "/server-config" => (
111                 "method"  => "basic",
112                 "realm"   => "download archiv",
113                 "require" => "group=www|user=jan|host=192.168.2.10",
114         ),
117 url.access-deny = (
118         "~",
119         ".inc",
122 url.redirect = (
123         "^/redirect/$" => "http://localhost:2048/",
126 expire.url = (
127         "/buggy/" => "access 2 hours",
128         "/asdhas/" => "access plus 1 seconds 2 minutes",
131 #### status module
132 status.status-url = "/server-status"
133 status.config-url = "/server-config"
135 $HTTP["host"] == "vvv.example.org" {
136         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
139 $HTTP["host"] == "zzz.example.org" {
140         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
141         server.name = "zzz.example.org"
144 $HTTP["host"] == "wsgi.example.org" {
145         fastcgi.server = (
146                 "/" => ( (
147                         "host" => "127.0.0.1", "port" => 10000,
148                         "fix-root-scriptname" => "enable",
149                         "check-local" => "disable",
150                         "bin-path" => env.SRCDIR + "/fcgi-responder",
151                         "max-procs" => 1,
152                 ) ),
153         )