Merge pull request #78 from cjsewell/patch-1

Add rewrite rule to enable Basic auithentication workaround for PHP running in CGI mode
This commit is contained in:
Daniel Hensby 2014-12-08 18:44:33 +00:00
commit a7f82d2fee

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},L]
# Deny access to potentially sensitive files and folders
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]