Requerir la autenticación de múltiples directorios en Lighttpd

Imagen de mama21mama

  1. $HTTP["host"] =~ "domain.tld" {
  2. auth.require = (
  3. "/secret/" => (
  4. "method" => "basic",
  5. "realm" => "Password Protected Area",
  6. "require" => "valid-user",
  7. ),
  8. "/private/" => (
  9. "method" => "basic",
  10. "realm" => "Password Protected Area",
  11. "require" => "valid-user",
  12. )
  13. )
  14. }

Fuente

legadolibre identica