From b2ee11a7be662b9772d4cf317d3d42b818826456 Mon Sep 17 00:00:00 2001 From: Corey Sewell Date: Tue, 9 Dec 2014 07:36:46 +1300 Subject: [PATCH] Add rewrite rule to enable Basic auithentication workaround for PHP running in CGI mode See https://github.com/silverstripe/silverstripe-framework/pull/3689 --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.htaccess b/.htaccess index 18e1930..f912d71 100644 --- a/.htaccess +++ b/.htaccess @@ -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]