diff --git a/collectd-js.apache2.conf b/collectd-js.apache2.conf
index e1ab7ae..0b818c4 100644
--- a/collectd-js.apache2.conf
+++ b/collectd-js.apache2.conf
@@ -3,29 +3,33 @@
# Access control:
- Order allow,deny
-
- # You might want to change this to avoid giving everyone
- # access to the collectd statistics, e.g.:
- # Allow from all
- # Allow from localhost
- # Allow from 192.168.
- Deny from all
+
+ # Apache 2.4
+
+ Require all granted
+
+
+
+ # Apache 2.2
+ Order allow,deny
+ Allow from all
+
Options +ExecCGI
AddHandler cgi-script .cgi
-
- Order allow,deny
-
- # You might want to change this to give access from
- # different hosts to the collectd statistics, e.g.:
- #
- # Allow from all
- # Allow from 192.168.
- Allow from localhost
- Deny from all
+
+ # Apache 2.4
+
+ Require all granted
+
+
+
+ # Apache 2.2
+ Order allow,deny
+ Allow from all
+
diff --git a/collectd.apache2.conf b/collectd.apache2.conf
index c85fb9e..510126a 100644
--- a/collectd.apache2.conf
+++ b/collectd.apache2.conf
@@ -3,15 +3,17 @@
# Access control:
- Order allow,deny
-
- # You might want to change this to give access from
- # different hosts to the collectd statistics, e.g.:
- #
- # Allow from all
- # Allow from 192.168.
- Allow from localhost
- Deny from all
+
+ # Apache 2.4
+
+ Require all granted
+
+
+
+ # Apache 2.2
+ Order allow,deny
+ Allow from all
+
diff --git a/collectd.changes b/collectd.changes
index 56eae4b..c714716 100644
--- a/collectd.changes
+++ b/collectd.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Jun 7 12:24:38 UTC 2018 - mardnh@gmx.de
+
+- Fix BuildRequires for collectd-web
+- Make apache configuration files compatible with Apache v2.2 and v2.4
+
-------------------------------------------------------------------
Wed Dec 13 15:50:24 UTC 2017 - stefan.bruens@rwth-aachen.de
diff --git a/collectd.spec b/collectd.spec
index b1684dc..d292fc3 100644
--- a/collectd.spec
+++ b/collectd.spec
@@ -1,7 +1,7 @@
#
# spec file for package collectd
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2005-2013 Pascal Bleser
#
# All modifications and additions to the file contributed by third parties
@@ -45,7 +45,7 @@ Name: collectd
Version: 5.7.2
Release: 0
Summary: Statistics Collection Daemon for filling RRD Files
-License: GPL-2.0
+License: GPL-2.0-only
Group: System/Monitoring
Url: http://collectd.org/
Source: http://collectd.org/files/collectd-%{version}.tar.bz2
@@ -156,6 +156,7 @@ Requires: rrdtool
Requires: perl(CGI)
Requires: perl(Data::Dumper)
Requires: perl(HTML::Entities)
+Requires: perl(RRDs)
Requires: perl(URI::Escape)
%description web