]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- simplify config by merging sections
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 10 Mar 2010 19:06:02 +0000 (19:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-apache.conf -> 1.9

nagios-apache.conf

index a16f38a841e8051dc1d0b4fd2c230570df3abbd6..07ea15fcdec88ffa82765e1e3b102a424ec28007 100644 (file)
@@ -2,38 +2,33 @@
 
 # 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/>
+# icons to jabber notify messages...
+<Directory /usr/share/nagios>
        Allow from all
 </Directory>
 
-# WITHOUT SSL
-<IfModule !mod_ssl.c>
-<Directory /usr/lib/nagios/cgi/>
+<Directory /usr/lib/nagios/cgi>
        Options ExecCGI
-       Order deny,allow
-       Deny from all
-       Allow from 127.0.0.1
-</Directory>
-</IfModule>
 
-# WITH SSL ENABLED
-<IfModule mod_ssl.c>
-<Directory /usr/lib/nagios/cgi/>
-       Options ExecCGI
-       SSLRequireSSL
-       Allow from all
-       AuthType Basic
-       AuthUserFile /etc/webapps/nagios/passwd
-       AuthGroupFile /etc/webapps/nagios/group
-       AuthName "Nagios"
-       Require group nagios
-</Directory>
+       # 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
 
-<Directory /usr/share/nagios/>
-       SSLRequireSSL
+               Allow from all
+               AuthType Basic
+               AuthUserFile /etc/webapps/nagios/passwd
+               AuthGroupFile /etc/webapps/nagios/group
+               AuthName "Nagios"
+               Require group nagios
+       </IfModule>
 </Directory>
-</IfModule>
 
 ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
 Alias /nagios/ /usr/share/nagios/
This page took 0.044201 seconds and 4 git commands to generate.