]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- require auth for /usr/share/nagios files (leave /images still open), so other apps...
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 7 Jan 2012 17:38:14 +0000 (17:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-apache.conf -> 1.11

nagios-apache.conf

index 5c5de347030c8f69555beb5cf191e3bd7d8b4ce9..05108aef20f58a84fd955a7e98959d28acb2d73c 100644 (file)
@@ -1,16 +1,6 @@
 # $Id$
 
-# We grant access to static files for everybody, as the files are available
-# publically anyway, but without having it with http password i'm able to link
-# icons to jabber notify messages...
-<Directory /usr/share/nagios>
-       Allow from all
-</Directory>
-<Directory /usr/share/doc/nagios>
-       Allow from all
-</Directory>
-
-<Directory /usr/lib/nagios/cgi>
+<Directory ~ "/usr/lib/nagios/cgi/|/usr/share/nagios/">
        Options ExecCGI
 
        # WITHOUT SSL
 
                Allow from all
                AuthType Basic
+               AuthName "Nagios"
+
                AuthUserFile /etc/webapps/nagios/passwd
                AuthGroupFile /etc/webapps/nagios/group
-               AuthName "Nagios"
                Require group nagios
        </IfModule>
 </Directory>
 
+# We grant access to static images for everybody, as the files are available
+# publically anyway, but without having it with http password i'm able to link
+# icons to jabber notify messages :)
+<Directory /usr/share/nagios/images>
+       Allow from all
+</Directory>
+<Directory /usr/share/doc/nagios>
+       Allow from all
+</Directory>
+
 ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
 Alias /nagios/docs/ /usr/share/doc/nagios/
 Alias /nagios/ /usr/share/nagios/
This page took 0.096754 seconds and 4 git commands to generate.