[mod_ssi] produce content in subrequest hook
[lighttpd.git] / tests / fastcgi-auth.conf
bloba1fc5848e3bd400d47784e029453d5cb77c326d6
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"
7 ## bind to port (default: 80)
8 server.port                 = 2048
10 ## bind to localhost (default: all interfaces)
11 server.bind                = "localhost"
12 server.errorlog            = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log"
13 server.breakagelog         = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log"
14 server.name                = "www.example.org"
15 server.tag                 = "Apache 1.3.29"
17 server.dir-listing          = "enable"
19 server.modules = (
20         "mod_rewrite",
21         "mod_access",
22         "mod_auth",
23         "mod_authn_file",
24         "mod_status",
25         "mod_expire",
26         "mod_redirect",
27         "mod_fastcgi",
28         "mod_cgi",
29         "mod_compress",
30         "mod_accesslog",
33 server.indexfiles = (
34         "index.php",
35         "index.html",
36         "index.htm",
37         "default.htm",
40 ######################## MODULE CONFIG ############################
43 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
45 mimetype.assign = (
46         ".png"  => "image/png",
47         ".jpg"  => "image/jpeg",
48         ".jpeg" => "image/jpeg",
49         ".gif"  => "image/gif",
50         ".html" => "text/html",
51         ".htm"  => "text/html",
52         ".pdf"  => "application/pdf",
53         ".swf"  => "application/x-shockwave-flash",
54         ".spl"  => "application/futuresplash",
55         ".txt"  => "text/plain",
56         ".tar.gz" =>   "application/x-tgz",
57         ".tgz"  => "application/x-tgz",
58         ".gz"   => "application/x-gzip",
59         ".c"    => "text/plain",
60         ".conf" => "text/plain",
63 compress.cache-dir = env.SRCDIR + "/tmp/lighttpd/cache/compress/"
64 compress.filetype = (
65         "text/plain",
66         "text/html",
69 fastcgi.debug = 0
70 fastcgi.server = (
71         "/" => (
72                 "grisu-auth" => (
73                         "host" => "127.0.0.1",
74                         "port" => 20000,
75                         "bin-path" => env.SRCDIR + "/fcgi-auth",
76                         "mode" => "authorizer",
77                         "check-local" => "disable",
78                 ),
79                 "grisu-resp" => (
80                         "host" => "127.0.0.1",
81                         "port" => 10000,
82                         "bin-path" => env.SRCDIR + "/fcgi-responder",
83                         "check-local" => "disable",
84                         "max-procs" => 1,
85                 ),
86         ),
89 cgi.assign = (
90         ".pl"  => env.PERL,
91         ".cgi" => env.PERL,
94 auth.backend = "plain"
95 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
96 auth.backend.plain.groupfile = "lighttpd.group"
98 #auth.backend.ldap.hostname  = "localhost"
99 #auth.backend.ldap.base-dn   = "dc=my-domain,dc=com"
100 #auth.backend.ldap.filter    = "(uid=$)"
102 auth.require = (
103         "/server-status" => (
104                 "method"  => "digest",
105                 "realm"   => "download archiv",
106                 "require" => "group=www|user=jan|host=192.168.2.10",
107         ),
108         "/auth.php" => (
109                 "method"  => "basic",
110                 "realm"   => "download archiv",
111                 "require" => "user=jan",
112         ),
113         "/server-config" => (
114                 "method"  => "basic",
115                 "realm"   => "download archiv",
116                 "require" => "group=www|user=jan|host=192.168.2.10",
117         ),
120 url.access-deny = (
121         "~",
122         ".inc",
125 url.redirect = (
126         "^/redirect/$" => "http://localhost:2048/",
129 expire.url = (
130         "/buggy/" => "access 2 hours",
131         "/asdhas/" => "access plus 1 seconds 2 minutes",
135 #### status module
136 status.status-url = "/server-status"
137 status.config-url = "/server-config"
139 $HTTP["host"] == "vvv.example.org" {
140         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
143 $HTTP["host"] == "zzz.example.org" {
144         server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
145         server.name = "zzz.example.org"