This commit is contained in:
Corey Sewell 2015-01-20 13:28:05 +13:00
parent 2742f63c79
commit 9b2b0b5c31
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ ErrorDocument 500 /assets/error-500.html
SetEnv HTTP_MOD_REWRITE On
RewriteEngine On
# Enable HTTP Basic authentication workaround for PHP running in CGI mode
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Deny access to potentially sensitive files and folders
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]