summaryrefslogtreecommitdiffstats
path: root/abs/core/lighttpd/auth-inc.conf
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/lighttpd/auth-inc.conf')
-rw-r--r--abs/core/lighttpd/auth-inc.conf27
1 files changed, 15 insertions, 12 deletions
diff --git a/abs/core/lighttpd/auth-inc.conf b/abs/core/lighttpd/auth-inc.conf
index 21c4c55..6fb1a9d 100644
--- a/abs/core/lighttpd/auth-inc.conf
+++ b/abs/core/lighttpd/auth-inc.conf
@@ -1,12 +1,15 @@
-auth.backend = "plain"
-auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
-
-
-auth.require = ( "/mythweb" =>
- (
- "method" => "basic",
- "realm" => "MythWeb",
- "require" => "valid-user"
- )
- )
-
+$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"
+ )
+ )
+ }
+ }
+}