forked from evolix/ansible-roles
apache: use backward compatible Redirect directive
This commit is contained in:
parent
a920d2d402
commit
26e3dc1be6
|
@ -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
|
||||
|
|
|
@ -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-.*">
|
||||
|
|
Loading…
Reference in a new issue