Block common log file names in .htaccess

This commit is contained in:
Zauberfisch 2017-02-19 11:10:21 +00:00 committed by GitHub
parent 5d778fa2a5
commit d7834c5ae7
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ ErrorDocument 500 /assets/error-500.html
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
RewriteRule composer\.(json|lock) - [F,L,NC]
RewriteRule (error|silverstripe|debug)\.log - [F,L,NC]
# Process through SilverStripe if no file with the requested name exists.
# Pass through the original path as a query parameter, and retain the existing parameters.