summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
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