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