]> git.pld-linux.org Git - packages/nagios.git/blob - nagios-apache.conf
- s/-qc/-q/
[packages/nagios.git] / nagios-apache.conf
1 # $Id$
2
3 <Directory ~ "/usr/lib/nagios/cgi/|/usr/share/nagios/">
4         Options ExecCGI
5
6         # WITHOUT SSL
7         <IfModule !mod_ssl.c>
8                 Order deny,allow
9                 Deny from all
10                 Allow from 127.0.0.1
11         </IfModule>
12
13         # WITH SSL ENABLED
14         <IfModule mod_ssl.c>
15                 SSLRequireSSL
16
17                 Allow from all
18                 AuthType Basic
19                 AuthName "Nagios"
20
21                 # LDAP based Authz. Apache 1.3
22                 <IfModule mod_auth_ldap.c>
23                         AuthLDAPEnabled on
24                         AuthLDAPURL ldap://ldap.example.org/ou=People,dc=example,dc=org?uid?sub?(objectClass=*)
25                 </IfModule>
26
27                 AuthUserFile /etc/webapps/nagios/passwd
28                 AuthGroupFile /etc/webapps/nagios/group
29                 Require group nagios
30         </IfModule>
31 </Directory>
32
33 # We grant access to static images for everybody, as the files are available
34 # publically anyway, but without having it with http password i'm able to link
35 # icons to jabber notify messages :)
36 <Directory /usr/share/nagios/images>
37         Allow from all
38 </Directory>
39 <Directory /usr/share/doc/nagios>
40         Allow from all
41 </Directory>
42
43 ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
44 Alias /nagios/docs/ /usr/share/doc/nagios/
45 Alias /nagios/ /usr/share/nagios/
This page took 0.038177 seconds and 3 git commands to generate.