summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@riseup.net>2015-10-09 18:53:44 +0000
committerMicah <micah@riseup.net>2015-10-09 18:53:44 +0000
commitf215de3de43f141ae71fd124a84003d157da7295 (patch)
tree21d96e22aae423c8c6f8f02cea06647bb1de94bc
parent71f8db0adc48de70af89892441569af97d646010 (diff)
parent7cb5f0625c929ccbc6029b6bb12f97f7f2bfe70a (diff)
Merge branch 'UpdateApacheConf' into 'master'
update the apache2.conf file updating to the debian 3.5.1.dfsg-2+b1 version of the file. mostly whitespace changes, one 2.2 vs 2.4 change and a change for docs. See merge request !14
-rw-r--r--files/configs/apache2.conf40
1 files changed, 26 insertions, 14 deletions
diff --git a/files/configs/apache2.conf b/files/configs/apache2.conf
index 14bb38b..f0f8b2f 100644
--- a/files/configs/apache2.conf
+++ b/files/configs/apache2.conf
@@ -1,8 +1,8 @@
# apache configuration for nagios 3.x
# note to users of nagios 1.x and 2.x:
-# throughout this file are commented out sections which preserve
-# backwards compatibility with bookmarks/config for older nagios versios.
-# simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.
+# throughout this file are commented out sections which preserve
+# backwards compatibility with bookmarks/config for older nagios versios.
+# simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
@@ -28,22 +28,34 @@ Alias /nagios3 /usr/share/nagios3/htdocs
#Alias /nagios /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
- Options FollowSymLinks
+ Options FollowSymLinks
- DirectoryIndex index.php index.html
+ DirectoryIndex index.php index.html
- AllowOverride AuthConfig
- Order Allow,Deny
- Allow From All
+ AllowOverride AuthConfig
- AuthName "Nagios Access"
- AuthType Basic
- AuthUserFile /etc/nagios3/htpasswd.users
- # nagios 1.x:
- #AuthUserFile /etc/nagios/htpasswd.users
- require valid-user
+
+ <IfVersion < 2.3>
+ Order Allow,Deny
+ Allow From All
+ </IfVersion>
+
+ <IfVersion >= 2.3>
+ Require all denied
+ </IfVersion>
+
+ AuthName "Nagios Access"
+ AuthType Basic
+ AuthUserFile /etc/nagios3/htpasswd.users
+ # nagios 1.x:
+ #AuthUserFile /etc/nagios/htpasswd.users
+ require valid-user
</DirectoryMatch>
+<Directory /usr/share/nagios3/htdocs>
+ 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