apache: use backward compatible Redirect directive

This commit is contained in:
Jérémy Lecour 2023-12-11 18:19:38 +01:00 committed by Jérémy Lecour
parent a920d2d402
commit 26e3dc1be6
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 4 additions and 3 deletions

View file

@ -28,6 +28,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* add-vm.sh: allow VM name max length > 20
* apache : fix goaway pattern for bad bots
* apache : rename MaxRequestsPerChild to MaxConnectionsPerChild (new name)
* apache: use backward compatible Redirect directive
* apt: Disable archive repository for Debian 8
* apt: Use the GPG version of the key for Debian 8-9
* bind: Update role for Buster, Bullseye and Bookworm support

View file

@ -48,17 +48,17 @@ MaxKeepAliveRequests 10
<DirectoryMatch "/\.git">
# We don't want to let the client know a file exist on the server,
# so we return 404 "Not found" instead of 403 "Forbidden".
Redirect 404
Redirect 404 "-"
</DirectoryMatch>
# File names starting with
<FilesMatch "^\.(git|env)">
Redirect 404
Redirect 404 "-"
</FilesMatch>
# File names ending with
<FilesMatch "\.(inc|bak)$">
Redirect 404
Redirect 404 "-"
</FilesMatch>
<LocationMatch "^/evolinux_fpm_status-.*">