summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-01-14 20:42:49 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-01-14 20:42:49 (GMT)
commit287207a3488c0fe779458537378d7fc1474813db (patch)
tree09c5f2b76ca87d8b7fb8b27ca155a18ef36c23d6 /abs
parent767d6c0306d38a5c3370711a7c0d2185b1b27f75 (diff)
downloadlinhes_pkgbuild-287207a3488c0fe779458537378d7fc1474813db.zip
linhes_pkgbuild-287207a3488c0fe779458537378d7fc1474813db.tar.gz
linhes_pkgbuild-287207a3488c0fe779458537378d7fc1474813db.tar.bz2
lighttpd:: enforce password across the entire site with the following exceptions:
1) access from localhost/127.0.0.1 2) port 1337 3) the file failed_func_hosts refs #896
Diffstat (limited to 'abs')
-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"
+ )
+ )
+ }
+ }
+}