aboutsummaryrefslogtreecommitdiff
path: root/cli/prepare.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-11 09:25:43 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-11 09:25:43 +0200
commit91624037c7d73eb545478aab2f8abc55fc224453 (patch)
treec1de6a07d7e30c5e88c3de40fd152e5304722cca /cli/prepare.php
parentb30a8fa652018025f8ccc6b361823486d04cf390 (diff)
Apache protect more non-public folders and files (#6881)
* Apache protect more non-public folders * Also protect root * Do the same for /p/ * Simplify Require all denied In case of Apache 2.2, it will just make an error 500 instead of 403 * .htaccess.dist * Simplify * Better comment
Diffstat (limited to 'cli/prepare.php')
-rwxr-xr-xcli/prepare.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/cli/prepare.php b/cli/prepare.php
index 414b48cd8..0b9faf044 100755
--- a/cli/prepare.php
+++ b/cli/prepare.php
@@ -25,17 +25,7 @@ foreach ($dirs as $dir) {
}
file_put_contents(DATA_PATH . '/.htaccess', <<<'EOF'
-# Apache 2.2
-<IfModule !mod_authz_core.c>
- Order Allow,Deny
- Deny from all
- Satisfy all
-</IfModule>
-
-# Apache 2.4
-<IfModule mod_authz_core.c>
- Require all denied
-</IfModule>
+Require all denied
EOF
);