nagios4/debian/apache2.conf

74 lines
2.3 KiB
ApacheConf
Raw Permalink Normal View History

2017-05-20 00:00:42 +02:00
# apache configuration for nagios 4.x
# note to users of nagios 1.x and 2.x and 3.x:
2014-10-05 11:53:19 +02:00
# throughout this file are commented out sections which preserve
# backwards compatibility with bookmarks/config for older nagios versios.
2017-05-20 00:00:42 +02:00
# simply look for lines following "nagios 1.x:" and "nagios 2.x" and "nagios 3.x" comments.
2014-10-05 11:53:19 +02:00
2017-05-20 00:00:42 +02:00
ScriptAlias /cgi-bin/nagios4 /usr/lib/cgi-bin/nagios4
ScriptAlias /nagios4/cgi-bin /usr/lib/cgi-bin/nagios4
2014-10-05 11:53:19 +02:00
# nagios 1.x:
2017-05-20 00:00:42 +02:00
#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios4
#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios4
2014-10-05 11:53:19 +02:00
# nagios 2.x:
2017-05-20 00:00:42 +02:00
#ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios4
#ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios4
# nagios 3.x:
#ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios4
#ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios4
2014-10-05 11:53:19 +02:00
# Where the stylesheets (config files) reside
2017-05-20 00:00:42 +02:00
Alias /nagios4/stylesheets /etc/nagios4/stylesheets
2014-10-05 11:53:19 +02:00
# nagios 1.x:
2017-05-20 00:00:42 +02:00
#Alias /nagios/stylesheets /etc/nagios4/stylesheets
2014-10-05 11:53:19 +02:00
# nagios 2.x:
2017-05-20 00:00:42 +02:00
#Alias /nagios2/stylesheets /etc/nagios4/stylesheets
# nagios 3.x:
#Alias /nagios3/stylesheets /etc/nagios4/stylesheets
2014-10-05 11:53:19 +02:00
# Where the HTML pages live
2017-05-20 00:00:42 +02:00
Alias /nagios4 /usr/share/nagios4/htdocs
# nagios 3.x:
#Alias /nagios3 /usr/share/nagios4/htdocs
2014-10-05 11:53:19 +02:00
# nagios 2.x:
2017-05-20 00:00:42 +02:00
#Alias /nagios2 /usr/share/nagios4/htdocs
2014-10-05 11:53:19 +02:00
# nagios 1.x:
2017-05-20 00:00:42 +02:00
#Alias /nagios /usr/share/nagios4/htdocs
2014-10-05 11:53:19 +02:00
2017-05-20 00:00:42 +02:00
<DirectoryMatch (/usr/share/nagios4/htdocs|/usr/lib/cgi-bin/nagios4|/etc/nagios4/stylesheets)>
2014-10-05 11:53:19 +02:00
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride AuthConfig
2017-10-20 15:55:38 +02:00
<IfVersion < 2.3>
2014-10-05 11:53:19 +02:00
Order Allow,Deny
Allow From All
2017-10-20 15:55:38 +02:00
</IfVersion>
2014-10-05 11:53:19 +02:00
2017-10-20 15:55:38 +02:00
<IfVersion >= 2.3>
2014-10-05 11:53:19 +02:00
Require all denied
2017-10-20 15:55:38 +02:00
</IfVersion>
2014-10-05 11:53:19 +02:00
AuthName "Nagios Access"
AuthType Basic
2017-05-20 00:00:42 +02:00
AuthUserFile /etc/nagios4/htpasswd.users
2014-10-05 11:53:19 +02:00
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
2017-05-20 00:00:42 +02:00
<Directory /usr/share/nagios4/htdocs>
2014-10-05 11:53:19 +02:00
Options +ExecCGI
</Directory>
# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
# XXX This is not tested for nagios 2.x use at your own peril
2017-05-20 00:00:42 +02:00
#ScriptAlias /nagios4/side.html /usr/lib/cgi-bin/nagios4/grouplist.cgi
2014-10-05 11:53:19 +02:00
# nagios 1.x:
2017-05-20 00:00:42 +02:00
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios4/grouplist.cgi
2014-10-05 11:53:19 +02:00