]> git.pld-linux.org Git - packages/nagios.git/blob - nagios-apache.conf
- require auth for /usr/share/nagios files (leave /images still open), so other apps...
[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                 AuthUserFile /etc/webapps/nagios/passwd
22                 AuthGroupFile /etc/webapps/nagios/group
23                 Require group nagios
24         </IfModule>
25 </Directory>
26
27 # We grant access to static images for everybody, as the files are available
28 # publically anyway, but without having it with http password i'm able to link
29 # icons to jabber notify messages :)
30 <Directory /usr/share/nagios/images>
31         Allow from all
32 </Directory>
33 <Directory /usr/share/doc/nagios>
34         Allow from all
35 </Directory>
36
37 ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
38 Alias /nagios/docs/ /usr/share/doc/nagios/
39 Alias /nagios/ /usr/share/nagios/
This page took 0.053704 seconds and 4 git commands to generate.