summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authortorinky <k_tori@me.com>2017-10-15 18:12:13 +0900
committertorinky <k_tori@me.com>2017-10-15 18:12:13 +0900
commitc6f4c51f1f51f28df9f5c4fc310d0faaa5cb4aa4 (patch)
tree07fcfb86ac9acfc3f5f1e79fe41e14c320e9773a /.htaccess
parent29aecf20d34aaed69cb9717a28e26a5d8f2ae79a (diff)
parentfcc0ea6feefa888f87ad0ddaaf225a0e7804b3bc (diff)
Merge remote-tracking branch 'origin/master'
# Conflicts: # app/Locale/ja_JP/translations.php
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