From be0919893d8b70b4fa6dbe8ddc250b521f450bc9 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 11 Mar 2017 08:56:14 +0100 Subject: [PATCH] updating shipped .htaccess files for Apache 2.4 as per https://httpd.apache.org/docs/2.4/upgrading.html#access - Thanks @EchoDev, fixes #194 --- .gitignore | 1 + CHANGELOG.md | 1 + cfg/.gitignore | 1 - cfg/.htaccess | 3 +-- lib/.htaccess | 3 +-- tpl/.htaccess | 1 + vendor/.htaccess | 1 + 7 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 cfg/.gitignore create mode 100644 tpl/.htaccess create mode 100644 vendor/.htaccess diff --git a/.gitignore b/.gitignore index e476e383..9f09f532 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Ignore server files for safety .htaccess .htpasswd +cfg/conf.ini # Ignore data/ data/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 10fab74d..964d4ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * ADDED: Translations for Spanish, Occitan, Norwegian and Portuguese * ADDED: Option in configuration to change the default "PrivateBin" title of the site * CHANGED: Minimum required PHP version is 5.4 (#186) + * CHANGED: Shipped .htaccess files were updated for Apache 2.4 (#192) * CHANGED: Cleanup of bootstrap template variants and moved icons to `img` directory * **1.1 (2016-12-26)** * ADDED: Translations for Italian and Russian diff --git a/cfg/.gitignore b/cfg/.gitignore deleted file mode 100644 index 69db0209..00000000 --- a/cfg/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/conf.ini diff --git a/cfg/.htaccess b/cfg/.htaccess index b584d98c..b66e8088 100644 --- a/cfg/.htaccess +++ b/cfg/.htaccess @@ -1,2 +1 @@ -Allow from none -Deny from all +Require all denied diff --git a/lib/.htaccess b/lib/.htaccess index b584d98c..b66e8088 100644 --- a/lib/.htaccess +++ b/lib/.htaccess @@ -1,2 +1 @@ -Allow from none -Deny from all +Require all denied diff --git a/tpl/.htaccess b/tpl/.htaccess new file mode 100644 index 00000000..b66e8088 --- /dev/null +++ b/tpl/.htaccess @@ -0,0 +1 @@ +Require all denied diff --git a/vendor/.htaccess b/vendor/.htaccess new file mode 100644 index 00000000..b66e8088 --- /dev/null +++ b/vendor/.htaccess @@ -0,0 +1 @@ +Require all denied