Fix HTTP Basic Authentication for Apache/FastCGI/php-fpm setups (#3456)

This commit is contained in:
kkkrist 2017-10-11 19:19:46 +02:00 committed by fguillot
parent 0ccf9a973a
commit 9e85d0f6e7
1 changed files with 7 additions and 0 deletions

View File

@ -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)
<IfModule mod_setenvif.c>
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
</IfModule>
<IfModule mod_rewrite.c>
Options -MultiViews