[packages/nagios-naglite] config compatible for apache 2.2/2.4
glen
glen at pld-linux.org
Thu Aug 6 17:08:05 CEST 2015
commit 1ca67f99df91792476af6cea8ef1ba9ff4f292c1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 6 18:07:48 2015 +0300
config compatible for apache 2.2/2.4
apache.conf | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/apache.conf b/apache.conf
index bc4034b..52e446a 100644
--- a/apache.conf
+++ b/apache.conf
@@ -2,16 +2,28 @@ Alias /naglite /usr/share/naglite
<Directory /usr/share/naglite>
# WITHOUT SSL
<IfModule !mod_ssl.c>
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all denied
+ Require local
+ </IfModule>
</IfModule>
# WITH SSL ENABLED
<IfModule mod_ssl.c>
SSLRequireSSL
- Allow from all
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Allow from all
+ </IfModule>
+
AuthType Basic
AuthUserFile /etc/webapps/nagios/passwd
AuthGroupFile /etc/webapps/nagios/group
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-naglite.git/commitdiff/e375cd74fd1f1f1f4650cb5811920d1e36e02928
More information about the pld-cvs-commit
mailing list