]>
Commit | Line | Data |
---|---|---|
6bc25cae | 1 | |
96018fcf TO |
2 | # WITHOUT SSL |
3 | <IfModule !mod_ssl.c> | |
4 | ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ | |
5 | <Directory /usr/lib/nagios/cgi/> | |
6 | Options ExecCGI | |
09ae3cf4 ER |
7 | Order deny,allow |
8 | Deny from all | |
9 | Allow from 127.0.0.1 | |
96018fcf TO |
10 | </Directory> |
11 | ||
12 | Alias /nagios/ /usr/share/nagios/ | |
13 | <Directory /usr/share/nagios/> | |
14 | Options None | |
09ae3cf4 ER |
15 | Order deny,allow |
16 | Deny from all | |
17 | Allow from 127.0.0.1 | |
96018fcf TO |
18 | </Directory> |
19 | </IfModule> | |
20 | ||
21 | # WITH SSL ENABLED | |
22 | <IfModule mod_ssl.c> | |
23 | ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/ | |
24 | <Directory /usr/lib/nagios/cgi/> | |
25 | Options ExecCGI | |
26 | SSLRequireSSL | |
09ae3cf4 ER |
27 | Order deny,allow |
28 | Deny from all | |
96018fcf TO |
29 | AuthType Basic |
30 | AuthUserFile /etc/nagios/passwd | |
31 | AuthGroupFile /etc/nagios/group | |
09ae3cf4 ER |
32 | AuthName "Nagios" |
33 | Require group nagios | |
96018fcf TO |
34 | </Directory> |
35 | ||
36 | Alias /nagios/ /usr/share/nagios/ | |
37 | <Directory /usr/share/nagios/> | |
38 | Options None | |
39 | SSLRequireSSL | |
09ae3cf4 ER |
40 | Order deny,allow |
41 | Deny from all | |
96018fcf TO |
42 | AuthType Basic |
43 | AuthUserFile /etc/nagios/passwd | |
44 | AuthGroupFile /etc/nagios/group | |
09ae3cf4 ER |
45 | AuthName "Nagios" |
46 | Require group nagios | |
96018fcf TO |
47 | </Directory> |
48 | </IfModule> | |
09ae3cf4 ER |
49 | |
50 | # vim: filetype=apache ts=4 sw=4 et |