diff options
| author | David <Bonbadil@users.noreply.github.com> | 2026-02-13 15:41:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-13 14:41:01 +0000 |
| commit | 6ce876758937baf586cc76babd5cd87dbcba3d91 (patch) | |
| tree | 5a41af1fbb2dc0d3b1c96b01476a2dd1b1144bb9 | |
| parent | 83e5abfdbf376346f60a134e148fa81019206ba5 (diff) | |
| download | webtrees-6ce876758937baf586cc76babd5cd87dbcba3d91.tar.gz webtrees-6ce876758937baf586cc76babd5cd87dbcba3d91.tar.bz2 webtrees-6ce876758937baf586cc76babd5cd87dbcba3d91.zip | |
Update .htaccess for Apache >= 2.4 (#5316)
Support for Apache 2.4 new authz_host module.
| -rw-r--r-- | data/.htaccess | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/data/.htaccess b/data/.htaccess index 281d5c33db..7ac075c886 100644 --- a/data/.htaccess +++ b/data/.htaccess @@ -1,2 +1,14 @@ -order allow,deny -deny from all +# Apache >= 2.4 +<IfModule mod_authz_core.c> + Require all denied +</IfModule> + +# Apache <= 2.2 +<IfModule !mod_authz_core.c> + <IfModule !mod_access_compat.c> + <IfModule mod_authz_host.c> + Order Allow,Deny + Deny from all + </IfModule> + </IfModule> +</IfModule> |
