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