summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-13 16:31:01 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-13 16:33:39 +0200
commitf1fd374a6f078031e231c89c9fb8ca4b33feba20 (patch)
treedde64ff97b1dbbfd861c6b64576e50f64f4ab39a /lib/setup.php
parentd7fa2a0f7770acb36c49ea60348bb583e53b04e7 (diff)
downloadnextcloud-server-f1fd374a6f078031e231c89c9fb8ca4b33feba20.tar.gz
nextcloud-server-f1fd374a6f078031e231c89c9fb8ca4b33feba20.zip
webdav workaround for apache+php-cgi
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 355d979dc65..252eaaeea18 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -273,6 +273,10 @@ class OC_Setup {
$content.= "php_value post_max_size 512M\n";
$content.= "SetEnv htaccessWorking true\n";
$content.= "</IfModule>\n";
+ $content.= "<IfModule !mod_php5.c>\n";
+ $content.= "RewriteEngine on\n";
+ $content.= "RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]\n";
+ $content.= "</IfModule>\n";
$content.= "Options -Indexes\n";
@file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it