]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios-lighttpd.conf
- release 1
[packages/nagios.git] / nagios-lighttpd.conf
index 5ad819eda7c0aabb86a9bed3f9e6bacf2c72227f..c6fd2f7855cfdacd5a0f65518997e25f9a02d24f 100644 (file)
@@ -1,8 +1,22 @@
 # $Id$
-#
-# TODO: authorization and ssl!
+# 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/" {
+       auth.backend = "htpasswd"
+       auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd"
+}
+
+auth.require = (
+       "/nagios/" => (
+               "method"  => "basic",
+               "realm"   => "Nagios",
+               "require" => "valid-user"
+       )
+)
This page took 0.130817 seconds and 4 git commands to generate.