]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios-apache.conf
- 3.0.4
[packages/nagios.git] / nagios-apache.conf
index cb4a17918443d1bd3bc7eba5edc879be55ecb75c..a16f38a841e8051dc1d0b4fd2c230570df3abbd6 100644 (file)
@@ -1,49 +1,39 @@
 # $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>
+
 # WITHOUT SSL
 <IfModule !mod_ssl.c>
-ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
 <Directory /usr/lib/nagios/cgi/>
-   Options ExecCGI
-   Order deny,allow
-   Deny from all
-   Allow from 127.0.0.1
-</Directory>
-
-Alias /nagios/ /usr/share/nagios/
-<Directory /usr/share/nagios/>
-   Options None
-   Order deny,allow
-   Deny from all
-   Allow from 127.0.0.1
+       Options ExecCGI
+       Order deny,allow
+       Deny from all
+       Allow from 127.0.0.1
 </Directory>
 </IfModule>
 
 # WITH SSL ENABLED
 <IfModule mod_ssl.c>
-ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
 <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
+       Options ExecCGI
+       SSLRequireSSL
+       Allow from all
+       AuthType Basic
+       AuthUserFile /etc/webapps/nagios/passwd
+       AuthGroupFile /etc/webapps/nagios/group
+       AuthName "Nagios"
+       Require group nagios
 </Directory>
 
-Alias /nagios/ /usr/share/nagios/
 <Directory /usr/share/nagios/>
-   Options None
-   SSLRequireSSL
-   Allow from all
-   AuthType Basic
-   AuthUserFile /etc/webapps/nagios/passwd
-   AuthGroupFile /etc/webapps/nagios/group
-   AuthName "Nagios"
-   Require group nagios
+       SSLRequireSSL
 </Directory>
 </IfModule>
 
-# vim: filetype=apache ts=4 sw=4 et
+ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
+Alias /nagios/ /usr/share/nagios/
This page took 0.090029 seconds and 4 git commands to generate.