Estoy intentando autenticar el acceso a todo en webroot (/ ) excepto cualquier cosa que resida en un directorio particular (/ directorio / ) y he intentado ambas opciones en vano:
$HTTP["url"] =~ "^(?!(/directory))" {
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "auth to this area",
"require" => "user=username"
)
)
}
$HTTP["url"] != "/directory" {
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "auth to this area",
"require" => "user=username"
)
)
}
lighttpd
http-basic-authentication
Nuri Hodges
fuente
fuente