diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-10-13 16:31:01 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-10-13 16:33:39 +0200 |
commit | f1fd374a6f078031e231c89c9fb8ca4b33feba20 (patch) | |
tree | dde64ff97b1dbbfd861c6b64576e50f64f4ab39a /lib/setup.php | |
parent | d7fa2a0f7770acb36c49ea60348bb583e53b04e7 (diff) | |
download | nextcloud-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.php | 4 |
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 |