From: Jan Rękorajski Date: Mon, 5 Aug 2013 17:16:05 +0000 (+0200) Subject: - make default config safe wrt mod_access_compat X-Git-Tag: auto/th/apache-2.4.6-1~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=e92e50817ec6d6aa9292f1bd8ccc32cec57be11a;p=packages%2Fapache.git - make default config safe wrt mod_access_compat --- diff --git a/apache-common.conf b/apache-common.conf index 8643668..326dcff 100644 --- a/apache-common.conf +++ b/apache-common.conf @@ -18,6 +18,10 @@ DocumentRoot "/home/services/httpd/html" Require all denied + + Order deny,allow + Deny from all + # @@ -51,5 +55,9 @@ DocumentRoot "/home/services/httpd/html" Require all granted + + Order allow,deny + Allow from all + diff --git a/apache-httpd.conf b/apache-httpd.conf index 28199f7..eaec1ea 100644 --- a/apache-httpd.conf +++ b/apache-httpd.conf @@ -103,6 +103,10 @@ IncludeOptional webapps.d/*.conf Require all granted + + Order allow,deny + Allow from all + diff --git a/apache-manual.conf b/apache-manual.conf index 709d97f..1ccd95f 100644 --- a/apache-manual.conf +++ b/apache-manual.conf @@ -14,6 +14,10 @@ AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "/hom Options Indexes AllowOverride None Require all granted + + Order allow,deny + Allow from all + SetHandler type-map diff --git a/apache-mod_authz_host.conf b/apache-mod_authz_host.conf index 6792035..5391967 100644 --- a/apache-mod_authz_host.conf +++ b/apache-mod_authz_host.conf @@ -6,5 +6,9 @@ LoadModule authz_host_module modules/mod_authz_host.so Require all denied + + Order allow,deny + Allow from all + diff --git a/apache-mod_autoindex.conf b/apache-mod_autoindex.conf index 7b902c6..b9c6ec1 100644 --- a/apache-mod_autoindex.conf +++ b/apache-mod_autoindex.conf @@ -27,6 +27,10 @@ Alias /icons/ "/home/services/httpd/icons/" Require all granted + + Order allow,deny + Allow from all + # diff --git a/apache-mod_info.conf b/apache-mod_info.conf index 9ba6d7a..4dca480 100644 --- a/apache-mod_info.conf +++ b/apache-mod_info.conf @@ -16,6 +16,11 @@ LoadModule info_module modules/mod_info.so # Require host .example.com # Require ip 127 Require local + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + diff --git a/apache-mod_proxy.conf b/apache-mod_proxy.conf index 757379a..041772e 100644 --- a/apache-mod_proxy.conf +++ b/apache-mod_proxy.conf @@ -30,6 +30,11 @@ ProxyRequests On Require all denied # Require host .your-domain.com + + Order deny,allow + Deny from all +# Allow from .your-domain.com + # enable local fcgi proxy request, e.x for php-fpm diff --git a/apache-mod_status.conf b/apache-mod_status.conf index a5fd90b..6477a23 100644 --- a/apache-mod_status.conf +++ b/apache-mod_status.conf @@ -17,6 +17,11 @@ LoadModule status_module modules/mod_status.so # Require host .example.com # Require ip 127 Require local + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + # diff --git a/apache-mod_userdir.conf b/apache-mod_userdir.conf index 1bcff5d..3b6fd29 100644 --- a/apache-mod_userdir.conf +++ b/apache-mod_userdir.conf @@ -21,9 +21,17 @@ UserDir public_html Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require all granted + + Order allow,deny + Allow from all + Require all denied + + Order deny,allow + Deny from all + # # 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 0cc6af5..b4bf2a3 100644 --- a/apache-multilang-errordoc.conf +++ b/apache-multilang-errordoc.conf @@ -27,6 +27,10 @@ Alias /error/ "/home/services/httpd/error/" AddOutputFilter Includes html AddHandler type-map var Require all granted + + Order allow,deny + Allow from all + LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr ForceLanguagePriority Prefer Fallback