i have tried to setup an htaccess protection of an file from my website.
i have pasted the following code into the 05-auth.conf
$HTTP["url"] =~ "^/www/hosts/domain" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd"
auth.require = ( "/file.php" =>
(
"method" => "basic",
"realm" => "Please enter your Password.",
"require" => "valid-user"
),
)
}
.. and after an restart of lighttpd, i can't see any login window. What's wrong on this configuration?