diff options
author | kkkrist <post@cmund.de> | 2017-10-11 19:19:46 +0200 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2017-10-11 10:19:46 -0700 |
commit | 9e85d0f6e7952e050835afe74498446aedee1fa9 (patch) | |
tree | 4403e219fe02b00c4967a3343e3d881c107c0ccc | |
parent | 0ccf9a973a3f1f7c92a1fbf6d3223c80f9f9bf6b (diff) |
Fix HTTP Basic Authentication for Apache/FastCGI/php-fpm setups (#3456)
-rw-r--r-- | .htaccess | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |