Merge pull request #153 from Zauberfisch/patch-1

Block common log file names in .htaccess
This commit is contained in:
Daniel Hensby 2017-03-16 16:38:15 +13:00 committed by GitHub
commit 0e7f29b5db
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.