|
|
|
@ -85,34 +85,27 @@ userdir.path = "/"
|
|
|
|
|
ssl.engine = "disable"
|
|
|
|
|
ssl.pemfile = "server.pem"
|
|
|
|
|
|
|
|
|
|
$HTTP["host"] == "auth-htpasswd.example.org" {
|
|
|
|
|
auth.backend = "htpasswd"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
auth.backend = "plain"
|
|
|
|
|
auth.backend.plain.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.user"
|
|
|
|
|
auth.backend.plain.groupfile = "lighttpd.group"
|
|
|
|
|
|
|
|
|
|
auth.backend.ldap.hostname = "localhost"
|
|
|
|
|
auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
|
|
|
|
|
auth.backend.ldap.filter = "(uid=$)"
|
|
|
|
|
auth.backend.htpasswd.userfile = "@SRCDIR@/tmp/lighttpd/lighttpd.htpasswd"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auth.require = ( "/server-status" =>
|
|
|
|
|
(
|
|
|
|
|
"method" => "digest",
|
|
|
|
|
"realm" => "download archiv",
|
|
|
|
|
# "require" => ("group=www", "user=jan", "host=192.168.2.10")
|
|
|
|
|
"require" => "group=www|user=jan|host=192.168.2.10"
|
|
|
|
|
),
|
|
|
|
|
"/auth.php" =>
|
|
|
|
|
(
|
|
|
|
|
"method" => "basic",
|
|
|
|
|
"realm" => "download archiv",
|
|
|
|
|
# "require" => ("group=www", "user=jan", "host=192.168.2.10")
|
|
|
|
|
"require" => "user=jan"
|
|
|
|
|
),
|
|
|
|
|
"/server-config" =>
|
|
|
|
|
(
|
|
|
|
|
"method" => "basic",
|
|
|
|
|
"realm" => "download archiv",
|
|
|
|
|
# "require" => ("group=www", "user=jan", "user=weigon", "host=192.168.2.10")
|
|
|
|
|
"require" => "group=www|user=jan|host=192.168.2.10"
|
|
|
|
|
"require" => "valid-user"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -175,7 +168,13 @@ $HTTP["remoteip"] =~ "(127.0.0.1)" {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# deny access for all image stealers
|
|
|
|
|
$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
|
|
|
|
|
url.access-deny = ( ".jpg", ".jpeg", ".png" )
|
|
|
|
|
$HTTP["host"] == "referer.example.org" {
|
|
|
|
|
$HTTP["referer"] !~ "^($|http://referer\.example\.org)" {
|
|
|
|
|
url.access-deny = ( ".png" )
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$HTTP["referer"] !~ "^($|http://referer\.example\.org)" {
|
|
|
|
|
url.access-deny = ( ".jpg" )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|