diff --git a/.htaccess b/.htaccess index 24bfe9be6..823abe805 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