aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorStefan Seidel <android@stefanseidel.info>2012-11-09 13:30:07 +0100
committerStefan Seidel <android@stefanseidel.info>2012-11-09 13:30:07 +0100
commit8f669880bc86c71388b20471c3b96bd86ae14fa7 (patch)
treef29ce468bc9d583daf0e772993eab0f12fca1e60 /.htaccess
parentc0538636440b7293dd074ff4867bd950d426cea3 (diff)
downloadnextcloud-server-8f669880bc86c71388b20471c3b96bd86ae14fa7.tar.gz
nextcloud-server-8f669880bc86c71388b20471c3b96bd86ae14fa7.zip
Fix WebDAV (and Android Client) not being able to authorize on Debian Squeeze + mod_fcgid installs.
Diffstat (limited to '.htaccess')
-rwxr-xr-x.htaccess8
1 files changed, 8 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index a5d51c78087..2d7b7dcc364 100755
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,11 @@
+<IfModule mod_fcgid.c>
+<IfModule mod_setenvif.c>
+<IfModule mod_headers.c>
+SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
+RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
+</IfModule>
+</IfModule>
+</IfModule>
ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c>