diff options
| author | 2019-10-31 18:15:47 +0100 | |
|---|---|---|
| committer | 2019-10-31 18:15:47 +0100 | |
| commit | 3aa66f317b496ccd9a2df914bbc747c52081a7ad (patch) | |
| tree | 6a3f3f74899801abdca00546e213dfdc141c53cf /cli/prepare.php | |
| parent | 82611c9622ed23b0e9fcf5f9f651ddffa1fd7706 (diff) | |
| parent | fcae48f313d399050cb15f37a8a73ae52fc67796 (diff) | |
Merge pull request #2599 from FreshRSS/dev1.15.0
FreshRSS 1.15
Diffstat (limited to 'cli/prepare.php')
| -rwxr-xr-x | cli/prepare.php | 14 |
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(); |
