[mod_authn_gssapi] 500 if fail to delegate creds (#2967)
[lighttpd.git] / tests / mod-auth.conf
bloba2846bf3a418a013b98089fc74c99e680f061d2c
1 debug.log-request-handling = "enable"
2 debug.log-request-header = "enable"
3 debug.log-response-header = "enable"
5 server.document-root       = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
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.modules = (
18         "mod_auth",
19         "mod_authn_file",
20         "mod_status",
21         "mod_accesslog",
24 accesslog.filename = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.access.log"
26 $HTTP["host"] == "auth-htpasswd.example.org" {
27         auth.backend = "htpasswd"
30 auth.backend = "plain"
31 auth.backend.plain.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.user"
33 auth.backend.htpasswd.userfile = env.SRCDIR + "/tmp/lighttpd/lighttpd.htpasswd"
35 auth.require = (
36         "/server-status" => (
37                 "method"  => "digest",
38                 "realm"   => "download archiv",
39                 "require" => "group=www|user=jan|host=192.168.2.10",
40         ),
41         "/server-config" => (
42                 "method"  => "basic",
43                 "realm"   => "download archiv",
44                 "require" => "valid-user",
45         ),
48 status.status-url = "/server-status"
49 status.config-url = "/server-config"