logo       

Auth and conditionals: msg#00064

web.lighttpd

Subject: Auth and conditionals

Hi!

There's something wrong with my auth configuration and I can't figure out where the problem resides. I have to apply an access control to two directories, /admin and /webstat, for a domain called domain.tld.

$HTTP["host"] =~ "domain\.tld$" {

server.name = "domain.tld"
auth.backend = "htpasswd"
auth.backend.plain.userfile = "/usr/local/lighttpd/auth.user"


auth.require = ( "/admin" =>
(
"method" => "basic",
"realm" => "Restricted Area",
"require" =>"user=user1|user=user2|user=user3"
),
"/webstat" =>
(
"method" => "basic",
"realm" => "Restricted Area",
"require" =>"user=user1|user=user2|user=user3"
)
)

}

After a reload of lighttpd it works for domain.tld, but other domains are affected too. So if I try to access domain2.tld/webstat, the password authentication for domain.tld/webstat shows up. What did I wrong?

Regards,
A.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise