]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios-apache.conf
- fix p1.pl location
[packages/nagios.git] / nagios-apache.conf
index a16f38a841e8051dc1d0b4fd2c230570df3abbd6..57c2575d8b198f7fefe862b0ec849fbed08def1b 100644 (file)
@@ -1,39 +1,45 @@
 # $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>
-<Directory /usr/lib/nagios/cgi/>
+<Directory ~ "/usr/lib/nagios/cgi/|/usr/share/nagios/">
        Options ExecCGI
-       Order deny,allow
-       Deny from all
-       Allow from 127.0.0.1
+
+       # 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
+               AuthName "Nagios"
+
+               # LDAP based Authz. Apache 1.3
+               <IfModule mod_auth_ldap.c>
+                       AuthLDAPEnabled on
+                       AuthLDAPURL ldap://ldap.example.org/ou=People,dc=example,dc=org?uid?sub?(objectClass=*)
+               </IfModule>
+
+               AuthUserFile /etc/webapps/nagios/passwd
+               AuthGroupFile /etc/webapps/nagios/group
+               Require group nagios
+       </IfModule>
 </Directory>
-</IfModule>
 
-# WITH SSL ENABLED
-<IfModule mod_ssl.c>
-<Directory /usr/lib/nagios/cgi/>
-       Options ExecCGI
-       SSLRequireSSL
+# 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
-       AuthType Basic
-       AuthUserFile /etc/webapps/nagios/passwd
-       AuthGroupFile /etc/webapps/nagios/group
-       AuthName "Nagios"
-       Require group nagios
 </Directory>
-
-<Directory /usr/share/nagios/>
-       SSLRequireSSL
+<Directory /usr/share/doc/nagios>
+       Allow from all
 </Directory>
-</IfModule>
 
 ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
+Alias /nagios/docs/ /usr/share/doc/nagios/
 Alias /nagios/ /usr/share/nagios/
This page took 0.04792 seconds and 4 git commands to generate.