From 297c402816a8601ae67bd7cc0bbd68871143ac2b Mon Sep 17 00:00:00 2001 From: Dylan Wagstaff Date: Tue, 24 Sep 2019 09:53:02 +1200 Subject: [PATCH] FIX Update Apache .htaccess for new access directives Apache updated the way it handles permissions and access to files at version 2.4 SilverStripe has not updated its default .htaccess files to reflect this however Most installations have been using mod_access_compat which has meant the (lack of) update has gone largely unnoticed. However distributions are beginning to drop the deprecation compatibility support module from their default setups, meaning that after someone updates their infrastructure, the SilverStripe installation ceases to be functional due to configuration syntax errors. This commit seeks to rectify this (in part with another update in silverstripe/recipe-core) by applying the advice given by Apache at https://httpd.apache.org/docs/2.4/upgrading.html and https://httpd.apache.org/docs/2.4/howto/access.html --- resources/.htaccess | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/.htaccess b/resources/.htaccess index ad0b01d..8098d68 100644 --- a/resources/.htaccess +++ b/resources/.htaccess @@ -1,7 +1,6 @@ # Block .method file - Order Allow,Deny - Deny from all + Require all denied # Block 404s