diff --git a/apache/files/evolinux-defaults.conf b/apache/files/evolinux-defaults.conf index 5e3e4700..65c8c921 100644 --- a/apache/files/evolinux-defaults.conf +++ b/apache/files/evolinux-defaults.conf @@ -48,15 +48,23 @@ MaxKeepAliveRequests 10 Deny from env=GoAway + + # 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 + - - Require all denied - +# File names starting with + + Redirect 404 + +# File names ending with + + Redirect 404 + Require all denied -# Block http request on /.git -RedirectMatch 404 /\.git