summaryrefslogtreecommitdiffstats
path: root/abs/core/lighttpd/auth-inc.conf
blob: 6fb1a9dc38a4dc71e600797baa6e6bb500b145f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$SERVER["socket"] != ":1337" {
    $HTTP["remoteip"] != "127.0.0.1" {
        $HTTP["url"] !~ "^/failed_func.hosts"{
            auth.backend               = "plain"
            auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
                auth.require = ( "" =>
                    (
                        "method"  => "basic",
                        "realm"   => "LinHES Central Server",
                        "require" => "valid-user"
                    )
                )
        }
    }
}