auth.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #######################################################################
  2. ##
  3. ## Authentication Module
  4. ## -----------------------
  5. ##
  6. ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAuth
  7. ## for more info and many more options.
  8. ##
  9. server.modules += ( "mod_auth" )
  10. #server.modules += ( "mod_authn_file" )
  11. #auth.backend = "plain"
  12. #auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
  13. #server.modules += ( "mod_authn_ldap" )
  14. #auth.backend = "ldap"
  15. #auth.backend.ldap.hostname = "localhost"
  16. #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
  17. #auth.backend.ldap.filter = "(uid=$)"
  18. #auth.require = ( "/server-status" =>
  19. # (
  20. # "method" => "digest",
  21. # "realm" => "Server Status",
  22. # "require" => "valid-user"
  23. # ),
  24. # )
  25. ##
  26. ## cache passwords/digests in memory to reduce load on the backend
  27. ## max-age is in seconds
  28. ## cache is checked for expiration every 8 seconds, so actual
  29. ## caching may be up to 8 seconds longer than configured max-age.
  30. ## default: inactive (no caching)
  31. ##
  32. #auth.cache = ("max-age" => "600")
  33. ##
  34. #######################################################################