]>
Commit | Line | Data |
---|---|---|
9e1fada6 | 1 | ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ |
9e1fada6 | 2 | Alias /nagios/docs/ /usr/share/doc/nagios/ |
c9e810a8 | 3 | Alias /nagios/ /usr/share/nagios/ |
9e1fada6 ER |
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/(doc/nagios|nagios/images)"> | |
9 | # Apache 2.x | |
10 | <IfModule !mod_authz_core.c> | |
11 | Order allow,deny | |
12 | Allow from all | |
13 | </IfModule> | |
14 | # Apache 2.4 | |
15 | <IfModule mod_authz_core.c> | |
16 | Require all granted | |
17 | </IfModule> | |
18 | </Directory> | |
218b60a4 | 19 | |
e6038209 | 20 | <Directory ~ "/usr/lib/nagios/cgi/|/usr/share/nagios/"> |
f944f0bc | 21 | Options +ExecCGI |
96018fcf | 22 | |
b2715b2c ER |
23 | # WITHOUT SSL |
24 | <IfModule !mod_ssl.c> | |
9e1fada6 ER |
25 | # Apache 2.x |
26 | <IfModule !mod_authz_core.c> | |
27 | Order deny,allow | |
28 | Deny from all | |
29 | Allow from 127.0.0.1 | |
30 | </IfModule> | |
31 | # Apache 2.4 | |
32 | <IfModule mod_authz_core.c> | |
33 | Require all denied | |
34 | Require local | |
35 | </IfModule> | |
b2715b2c ER |
36 | </IfModule> |
37 | ||
38 | # WITH SSL ENABLED | |
39 | <IfModule mod_ssl.c> | |
40 | SSLRequireSSL | |
96018fcf | 41 | |
b2715b2c | 42 | AuthType Basic |
e6038209 ER |
43 | AuthName "Nagios" |
44 | ||
9e1fada6 ER |
45 | # Apache 2.x |
46 | <IfModule !mod_authz_core.c> | |
47 | Allow from all | |
5b6488b1 ER |
48 | </IfModule> |
49 | ||
9e1fada6 ER |
50 | # LDAP based Authz. Apache 1.3 |
51 | # <IfModule mod_auth_ldap.c> | |
52 | # AuthLDAPEnabled on | |
53 | # AuthLDAPURL ldap://ldap.example.org/ou=People,dc=example,dc=org?uid?sub?(objectClass=*) | |
54 | # </IfModule> | |
55 | ||
b2715b2c ER |
56 | AuthUserFile /etc/webapps/nagios/passwd |
57 | AuthGroupFile /etc/webapps/nagios/group | |
b2715b2c ER |
58 | Require group nagios |
59 | </IfModule> | |
96018fcf | 60 | </Directory> |