"Auth" exceptions
Added by estratos almost 14 years ago
Hi,
I'm using this statements for enabling the authentication on the web root:
$HTTP["url"] =~ "^/" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/etc/htpasswd" auth.require = ("/" => ( "method" => "basic", "realm" => "root", "require" => "valid-user" )) }
How could I disable the authentication on a given subfolder (/images) or for a given file (/images/icon.png)?
Thanks in advance for your help,
Daniel.
Replies (1)
RE: "Auth" exceptions - Added by darix almost 14 years ago
$HTTP["url"] !~ "^(/images/.*|/images/icon.png)$" { auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/etc/htpasswd" auth.require = ("/" => ( "method" => "basic", "realm" => "root", "require" => "valid-user" )) }
(yes i know the example isnt so smart, but it illustrates how to do it for multiple urls.)