]> git.pld-linux.org Git - packages/nagios.git/blob - nagios-apache.conf
multiapache version config
[packages/nagios.git] / nagios-apache.conf
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/(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>
19
20 <Directory ~ "/usr/lib/nagios/cgi/|/usr/share/nagios/">
21         Options ExecCGI
22
23         # WITHOUT SSL
24         <IfModule !mod_ssl.c>
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>
36         </IfModule>
37
38         # WITH SSL ENABLED
39         <IfModule mod_ssl.c>
40                 SSLRequireSSL
41
42                 AuthType Basic
43                 AuthName "Nagios"
44
45                 # Apache 2.x
46                 <IfModule !mod_authz_core.c>
47                         Allow from all
48                 </IfModule>
49
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
56                 AuthUserFile /etc/webapps/nagios/passwd
57                 AuthGroupFile /etc/webapps/nagios/group
58                 Require group nagios
59         </IfModule>
60 </Directory>
This page took 0.078663 seconds and 4 git commands to generate.