server.modules += ( "mod_auth" ) auth.debug = 2 auth.backend = "plain" auth.backend.plain.userfile = "/etc/lighttpd/.htpasswd" # for htdigest auth.require = ( "/" => ( "method" => "basic", "realm" => "you shall not pass", "require" => "valid-user" ) )