mkdir /opt/share/www/lighttpd/public
$HTTP["url"] =~ "^/public/" {
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd.public"
auth.require = ( "/public/" =>
(
"method" => "basic",
"realm" => "public",
"require" => "valid-user"
)
)