# $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/