mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Block common log file names in .htaccess
This commit is contained in:
parent
5d778fa2a5
commit
d7834c5ae7
@ -49,6 +49,7 @@ ErrorDocument 500 /assets/error-500.html
|
|||||||
RewriteRule ^vendor(/|$) - [F,L,NC]
|
RewriteRule ^vendor(/|$) - [F,L,NC]
|
||||||
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
|
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
|
||||||
RewriteRule composer\.(json|lock) - [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.
|
# 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.
|
# Pass through the original path as a query parameter, and retain the existing parameters.
|
||||||
|
Loading…
Reference in New Issue
Block a user