I'm trying to set a whilelist for a site I manage:
$HTTP["host"] == "obfuscated.org" {
server.name = "obf"
server.document-root = var.wwwbase + server.name
server.errorfile-prefix = server.document-root + "/err/"
accesslog.filename = "| " + var.exec_multilog + var.logbase + "/" +
server.name + "/access"
#------------------------------------------------------------
# auth
auth.backend = "htdigest"
auth.backend.htdigest.userfile = var.wwwbase + server.name + ".passwd"
auth.require = (
"/cgi-auth/" => (
"method" => "digest",
"realm" => "obf",
"require" => "valid-user",
)
)
#------------------------------------------------------------
# cgi
$HTTP["url"] =~ "^/cgi-auth" { cgi.assign = ("" => "") }
$HTTP["url"] =~ "^/cgi-anon" { cgi.assign = ("" => "") }
# access
$HTTP["remoteip"] !~ "79.72.0.0/13|66.246.193.214" { url.access-deny =
("") }
#------------------------------------------------------------
# rewrites
url.rewrite-once = (
"^/anon/(.*)" => "/cgi-anon/mt-anon/$1",
"^/auth/(.*)" => "/cgi-auth/mt-auth/$1",
)
}
The access control doesn't seem to be working. I can connect to the
site from 66.246.193.214 without problems, but nothing in the
79.72.0.0/13 seems to be able to. I'm not doing any access control
anywhere else in my configuration.
Any ideas what could be causing this?
on 05.05.2008 23:13

