Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Seidel <android@stefanseidel.info>2012-11-09 16:30:07 +0400
committerStefan Seidel <android@stefanseidel.info>2012-11-09 16:30:07 +0400
commit8f669880bc86c71388b20471c3b96bd86ae14fa7 (patch)
treef29ce468bc9d583daf0e772993eab0f12fca1e60 /.htaccess
parentc0538636440b7293dd074ff4867bd950d426cea3 (diff)
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>