Password protect folder with Lighttpd and htpasswd
Enable mod_auth module in Lighttpd (/etc/lighttpd/lighttpd.conf) config file: server.modules = ( […] "mod_auth", )server.modules = ( […] "mod_auth", ) Inside the vhost config file write this: auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/path/to/file/.htpasswd" auth.require = ( "/folder-to-protect/" => ( "method" => "basic", "realm" => "Please enter your Password.", "require" => "valid-user" ), )auth.backend = "htpasswd" auth.backend.htpasswd.userfile […]