add template
authorPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 09:11:27 +0000 (11:11 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 09:11:27 +0000 (11:11 +0200)
modules/nagios/templates/icinga-apache2.conf.erb [new file with mode: 0644]

diff --git a/modules/nagios/templates/icinga-apache2.conf.erb b/modules/nagios/templates/icinga-apache2.conf.erb
new file mode 100644 (file)
index 0000000..f322b01
--- /dev/null
@@ -0,0 +1,35 @@
+# apache configuration for icinga
+
+ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga
+
+# Where the stylesheets (config files) reside
+Alias /icinga/stylesheets /etc/icinga/stylesheets
+
+# Where the HTML pages live
+Alias /icinga /usr/share/icinga/htdocs
+
+
+<DirectoryMatch "^(?:/usr/share/icinga/htdocs|/usr/lib/cgi-bin/icinga|/etc/icinga/stylesheets)/">
+       Options FollowSymLinks
+
+       DirectoryIndex index.html
+
+       AllowOverride AuthConfig
+       Order Allow,Deny
+       Allow From All
+
+       AuthName "Nagios Access"
+       AuthType Basic
+       AuthBasicProvider file anon
+       AuthUserFile /srv/nagios.debian.org/htpasswd
+
+       Anonymous_MustGiveEmail off
+       Anonymous_LogEmail off
+       Anonymous dsa-guest
+
+       require valid-user
+</DirectoryMatch>
+
+<Directory "/usr/share/javascript/">
+       Options FollowSymLinks MultiViews
+</Directory>