aboutsummaryrefslogtreecommitdiff
path: root/cli/prepare.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2019-08-14 15:25:28 +0200
committerGravatar Frans de Jonge <fransdejonge@gmail.com> 2019-08-14 15:25:28 +0200
commitc82aff177e53685c66d1bd1ab41a893bef29caef (patch)
tree760526c5849daa7e3de0e5dac9aff45b7140484e /cli/prepare.php
parentcb318740851672292227b7376434451684ae0360 (diff)
fix: Generate correct htaccess in cli/prepare (#2480)
Bug introduced in https://github.com/FreshRSS/FreshRSS/pull/2461
Diffstat (limited to 'cli/prepare.php')
-rwxr-xr-xcli/prepare.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/cli/prepare.php b/cli/prepare.php
index 81fb53f85..7e8ea051d 100755
--- a/cli/prepare.php
+++ b/cli/prepare.php
@@ -28,9 +28,17 @@ if (!is_file(DATA_PATH . '/config.php')) {
}
file_put_contents(DATA_PATH . '/.htaccess',
-"Order Allow,Deny\n" .
-"Deny from all\n" .
-"Satisfy all\n"
+"# Apache 2.2\n" .
+"<IfModule !mod_authz_core.c>\n" .
+" Order Allow,Deny\n" .
+" Deny from all\n" .
+" Satisfy all\n" .
+"</IfModule>\n" .
+"\n" .
+"# Apache 2.4\n" .
+"<IfModule mod_authz_core.c>\n" .
+" Require all denied\n" .
+"</IfModule>\n"
);
accessRights();