From 40ca719a1cc592056638caa1d775b0db87c35072 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Sun, 26 Feb 2012 09:05:31 +0000 Subject: [PATCH] - 2.4 way of access control Changed files: apache-common.conf -> 1.10 apache-example.net.conf -> 1.5 apache-httpd.conf -> 1.61 apache-manual.conf -> 1.3 apache-mod_authz_host.conf -> 1.3 apache-mod_autoindex.conf -> 1.11 apache-mod_info.conf -> 1.10 apache-mod_proxy.conf -> 1.10 apache-mod_status.conf -> 1.9 apache-mod_userdir.conf -> 1.7 apache-multilang-errordoc.conf -> 1.3 --- apache-common.conf | 6 ++---- apache-example.net.conf | 3 +-- apache-httpd.conf | 3 +-- apache-manual.conf | 3 +-- apache-mod_authz_host.conf | 3 +-- apache-mod_autoindex.conf | 3 +-- apache-mod_info.conf | 4 +--- apache-mod_proxy.conf | 5 ++--- apache-mod_status.conf | 4 +--- apache-mod_userdir.conf | 6 ++---- apache-multilang-errordoc.conf | 3 +-- 11 files changed, 14 insertions(+), 29 deletions(-) diff --git a/apache-common.conf b/apache-common.conf index 05686e9..8643668 100644 --- a/apache-common.conf +++ b/apache-common.conf @@ -16,8 +16,7 @@ DocumentRoot "/home/services/httpd/html" Options FollowSymLinks AllowOverride None - Order deny,allow - Deny from all + Require all denied @@ -50,8 +49,7 @@ DocumentRoot "/home/services/httpd/html" # Controls who can get stuff from this server. # - Order allow,deny - Allow from all + Require all granted diff --git a/apache-example.net.conf b/apache-example.net.conf index 2d65d7f..c08629d 100644 --- a/apache-example.net.conf +++ b/apache-example.net.conf @@ -18,7 +18,6 @@ # AllowOverride None # Options None # -# Order allow,deny -# Allow from all +# Require all granted # # diff --git a/apache-httpd.conf b/apache-httpd.conf index 8ca6558..aed7d54 100644 --- a/apache-httpd.conf +++ b/apache-httpd.conf @@ -85,8 +85,7 @@ IncludeOptional webapps.d/*.conf AllowOverride None Options None - Order allow,deny - Allow from all + Require all granted diff --git a/apache-manual.conf b/apache-manual.conf index a94735d..77edb70 100644 --- a/apache-manual.conf +++ b/apache-manual.conf @@ -12,8 +12,7 @@ AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "/home/services/h Options Indexes AllowOverride None - Order allow,deny - Allow from all + Require all granted SetHandler type-map diff --git a/apache-mod_authz_host.conf b/apache-mod_authz_host.conf index 65350d6..cee3f8a 100644 --- a/apache-mod_authz_host.conf +++ b/apache-mod_authz_host.conf @@ -6,7 +6,6 @@ LoadModule authz_host_module modules/mod_authz_host.so # - Order allow,deny - Deny from all + Require all denied diff --git a/apache-mod_autoindex.conf b/apache-mod_autoindex.conf index e3e4cd9..662ff20 100644 --- a/apache-mod_autoindex.conf +++ b/apache-mod_autoindex.conf @@ -26,8 +26,7 @@ Alias /icons/ "/home/services/httpd/icons/" Options Indexes MultiViews AllowOverride None - Order allow,deny - Allow from all + Require all granted diff --git a/apache-mod_info.conf b/apache-mod_info.conf index 5fea501..9e3cbf2 100644 --- a/apache-mod_info.conf +++ b/apache-mod_info.conf @@ -14,9 +14,7 @@ LoadModule info_module modules/mod_info.so # SetHandler server-info - Order deny,allow - Deny from all - Allow from 127.0.0.1 + Require local diff --git a/apache-mod_proxy.conf b/apache-mod_proxy.conf index 19f3d58..af9f146 100644 --- a/apache-mod_proxy.conf +++ b/apache-mod_proxy.conf @@ -20,9 +20,8 @@ ProxyRequests On # http://victim:25/ and sending raw data. # - Order deny,allow - Deny from all -# Allow from .your-domain.com + Require all denied +# Require host .your-domain.com # diff --git a/apache-mod_status.conf b/apache-mod_status.conf index 401bad0..f579d27 100644 --- a/apache-mod_status.conf +++ b/apache-mod_status.conf @@ -15,9 +15,7 @@ LoadModule status_module modules/mod_status.so SetHandler server-status - Order deny,allow - Deny from all - Allow from 127.0.0.1 + Require local # diff --git a/apache-mod_userdir.conf b/apache-mod_userdir.conf index ca87136..30520ad 100644 --- a/apache-mod_userdir.conf +++ b/apache-mod_userdir.conf @@ -21,12 +21,10 @@ UserDir public_html AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec - Order allow,deny - Allow from all + Require all granted - Order deny,allow - Deny from all + Require all denied # # php_admin_value open_basedir "/home/users:/usr/share/pear:/usr/share/php:/tmp" diff --git a/apache-multilang-errordoc.conf b/apache-multilang-errordoc.conf index f865b6f..0cc6af5 100644 --- a/apache-multilang-errordoc.conf +++ b/apache-multilang-errordoc.conf @@ -26,8 +26,7 @@ Alias /error/ "/home/services/httpd/error/" Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var - Order allow,deny - Allow from all + Require all granted LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr ForceLanguagePriority Prefer Fallback -- 2.44.0