]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios-lighttpd.conf
- suggest some basic plugins in main package
[packages/nagios.git] / nagios-lighttpd.conf
index 2fcf19f0ec6be8c525da569c2737909a843895d1..eb94ca1d20b0e70e4f441ff3e4957b99abf1db2a 100644 (file)
@@ -1,22 +1,29 @@
 # $Id$
 # NB:
 # - lighty doesn't support groupfile
-# - lighty doesn't support Apache's $apr1$ passwords
 
 alias.url += (
        "/nagios/cgi-bin/" => "/usr/lib/nagios/cgi/",
        "/nagios" => "/usr/share/nagios",
 )
 
-$HTTP["url"] =~ "^/nagios" {
+$HTTP["url"] =~ "^/nagios/" {
+       auth.require = (
+               "/disabled-nagios/" => (
+                       "method"  => "basic",
+                       "realm"   => "Nagios",
+                       "require" => "valid-user"
+               )
+       )
+
        auth.backend = "htpasswd"
+#      auth.backend = "ldap"
+
+       # htpasswd config
        auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd"
-}
 
-auth.require = (
-       "/nagios" => (
-               "method"  => "basic",
-               "realm"   => "Nagios",
-               "require" => "valid-user"
-       )
-)
+       # ldap config
+       auth.backend.ldap.hostname = "localhost"
+       auth.backend.ldap.base-dn  = "ou=People,dc=example,dc=org"
+       auth.backend.ldap.filter   = "(uid=$)"
+}
This page took 0.041617 seconds and 4 git commands to generate.