]> git.pld-linux.org Git - packages/nagios-naglite.git/commitdiff
- default restricted access auto/ac/nagios-naglite-1_5-1 auto/th/nagios-naglite-1_5-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 31 Oct 2011 12:46:53 +0000 (12:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.conf -> 1.2
    lighttpd.conf -> 1.2

apache.conf
lighttpd.conf

index 09139ce3619cf4516c102ff1c0bec464d5974036..bc4034bc7fd8658d6474f17d25b1029fcc63e436 100644 (file)
@@ -1,4 +1,21 @@
 Alias /naglite /usr/share/naglite
 <Directory /usr/share/naglite>
-       Allow from all
+       # WITHOUT SSL
+       <IfModule !mod_ssl.c>
+               Order deny,allow
+               Deny from all
+               Allow from 127.0.0.1
+       </IfModule>
+
+       # WITH SSL ENABLED
+       <IfModule mod_ssl.c>
+               SSLRequireSSL
+
+               Allow from all
+               AuthType Basic
+               AuthUserFile /etc/webapps/nagios/passwd
+               AuthGroupFile /etc/webapps/nagios/group
+               AuthName "Nagios"
+               Require group nagios
+       </IfModule>
 </Directory>
index 66cd90ddc34c48d0da7453f89a883c81e910c00c..06d0732ddf437b36e0c6c2f095c8e5d2dc236625 100644 (file)
@@ -1,3 +1,24 @@
 alias.url += (
     "/naglite" => "/usr/share/naglite",
 )
+
+$HTTP["url"] =~ "^/naglite/" {
+       auth.require = (
+               "/naglite/" => (
+                       "method"  => "basic",
+                       "realm"   => "Nagios",
+                       "require" => "valid-user"
+               )
+       )
+
+       auth.backend = "htpasswd"
+#      auth.backend = "ldap"
+
+       # htpasswd config
+       auth.backend.htpasswd.userfile = "/etc/webapps/nagios/passwd"
+
+       # 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.086484 seconds and 4 git commands to generate.