Code

Multisite works with either Icinga or Nagios3
[pkg-check_mk.git] / debian / apache.nagios3
1 # Created by setup of check_mk version 1.1.6p1
2 # This file will *not* be overwritten at the next setup
3 # of check_mk. You may edit it as needed. In order to get
4 # a new version, please delete it and re-run setup.sh.
6 # Note for RedHat 5.3 users (and probably other version:
7 # this file must be loaded *after* python.conf, otherwise
8 # <IfModule mod_python.c> does not trigger! For that
9 # reason, it is installed as zzz_.... Sorry for the
10 # inconveniance.
12 <IfModule mod_python.c>
13     Alias /check_mk /usr/share/check_mk/web/htdocs
14     <Directory /usr/share/check_mk/web/htdocs>
15         AddHandler mod_python .py
16         PythonHandler index
17         PythonDebug On 
18         DirectoryIndex index.py
20         # Need Nagios authentification. Please edit the
21         # following: Set AuthName and AuthUserFile to the
22         # same value that you use for your Nagios configuration!
23         Order deny,allow
24         allow from all
25         AuthName "Nagios Access"
26         AuthType Basic
27         AuthUserFile /etc/nagios3/htpasswd.users
28         require valid-user
30         ErrorDocument 403 "<h1>Authentication Problem</h1>Either you've entered an invalid password or the authentication<br>configuration of your check_mk web pages is incorrect.<br><br>Please make sure that you've edited the file<br><tt>/etc/apache2/conf.d/check_mk</tt> and made it use the same<br>authentication settings as your Nagios web pages.<br>Restart Apache afterwards."
31         ErrorDocument 500 "<h1>Server or Configuration Problem</h1>A Server problem occurred. You'll find details in the error log of Apache. One possible reason is, that the file <tt>/etc/nagios/htpasswd.users</tt> is missing. You can create that file with <tt>htpasswd</tt> or <tt>htpasswd2</tt>. A better solution might be to use your existing htpasswd file from your Nagios installation. Please edit <tt>/etc/apache2/conf.d/check_mk</tt> and change the path there. Restart Apache afterwards."
32     </Directory>
33 </IfModule>
35 <IfModule !mod_python.c>
36     Alias /check_mk /usr/share/check_mk/web/htdocs
37     <Directory /usr/share/check_mk/web/htdocs>
38         Deny from all
39         ErrorDocument 403 "<h1>Check_mk: Incomplete Apache2 Installation</h1>You need mod_python in order to run the web interface of check_mk.<br> Please install mod_python and restart Apache."
40     </Directory>
41 </IfModule>