From 9e85d0f6e7952e050835afe74498446aedee1fa9 Mon Sep 17 00:00:00 2001 From: kkkrist Date: Wed, 11 Oct 2017 19:19:46 +0200 Subject: Fix HTTP Basic Authentication for Apache/FastCGI/php-fpm setups (#3456) --- .htaccess | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.htaccess b/.htaccess index 24bfe9be..823abe80 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,10 @@ +# Pass HTTP Authorization header via environment variable to PHP backend +# to make HTTP Basic Authentication work for Apache/FastCGI/php-fpm +# setups (required to authenticate over the API) + + SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 + + Options -MultiViews -- cgit v1.2.3