diff --git a/doc/rpm-build/apache.conf b/doc/rpm-build/apache.conf
index e576e9ddbb..b9950e5781 100644
--- a/doc/rpm-build/apache.conf
+++ b/doc/rpm-build/apache.conf
@@ -15,9 +15,17 @@ RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1
Options FollowSymLinks ExecCGI
- AllowOverride None
- Order allow,deny
- Allow from all
+
+ # Apache 2.4
+ AllowOverride None
+ Require all granted
+
+
+ # Apache 2.2
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+
DirectoryIndex index.html index.php
AddHandler cgi-script .cgi
AddDefaultCharset Off
@@ -41,8 +49,15 @@ RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1
php_value post_max_size 65M
php_value max_input_vars 3000
- Order allow,deny
- Deny from all
+
+ # Apache 2.4
+ Require all denied
+
+
+ # Apache 2.2
+ Order allow,deny
+ Deny from all
+
# Enable the following block in order to redirect logins to HTTPS:
#RewriteEngine On