Add rewrite rule to enable Basic auithentication workaround for PHP running in CGI mode

See https://github.com/silverstripe/silverstripe-framework/pull/3689
This commit is contained in:
Corey Sewell 2014-12-09 07:36:46 +13:00
parent 3a4f346a61
commit b2ee11a7be

View File

@ -27,6 +27,9 @@ ErrorDocument 500 /assets/error-500.html
SetEnv HTTP_MOD_REWRITE On SetEnv HTTP_MOD_REWRITE On
RewriteEngine 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 # Deny access to potentially sensitive files and folders
RewriteRule ^vendor(/|$) - [F,L,NC] RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC] RewriteRule silverstripe-cache(/|$) - [F,L,NC]