summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorkkkrist <post@cmund.de>2017-10-11 19:19:46 +0200
committerfguillot <fred@kanboard.net>2017-10-11 10:19:46 -0700
commit9e85d0f6e7952e050835afe74498446aedee1fa9 (patch)
tree4403e219fe02b00c4967a3343e3d881c107c0ccc /.htaccess
parent0ccf9a973a3f1f7c92a1fbf6d3223c80f9f9bf6b (diff)
Fix HTTP Basic Authentication for Apache/FastCGI/php-fpm setups (#3456)
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess7
1 files changed, 7 insertions, 0 deletions
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)
+<IfModule mod_setenvif.c>
+ SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
+</IfModule>
+
<IfModule mod_rewrite.c>
Options -MultiViews