diff --git a/apps/user_ldap/tests/.htaccess b/apps/user_ldap/tests/.htaccess index 5e068d28661f..6fde30e763a6 100755 --- a/apps/user_ldap/tests/.htaccess +++ b/apps/user_ldap/tests/.htaccess @@ -11,4 +11,6 @@ Satisfy All # section for Apache 2.2 and 2.4 + IndexIgnore * + diff --git a/build/.htaccess b/build/.htaccess index c7a7b79feac0..853aed187d3e 100644 --- a/build/.htaccess +++ b/build/.htaccess @@ -9,4 +9,6 @@ deny from all # section for Apache 2.2 and 2.4 + IndexIgnore * + diff --git a/config/.htaccess b/config/.htaccess index c7a7b79feac0..853aed187d3e 100644 --- a/config/.htaccess +++ b/config/.htaccess @@ -9,4 +9,6 @@ deny from all # section for Apache 2.2 and 2.4 + IndexIgnore * + diff --git a/lib/private/setup.php b/lib/private/setup.php index a38f594ff7f5..617effbd85ff 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -479,7 +479,9 @@ public static function protectDataDirectory() { $content.= "Satisfy All\n"; $content.= "\n\n"; $content.= "# section for Apache 2.2 and 2.4\n"; + $content.= "\n"; $content.= "IndexIgnore *\n"; + $content.= "\n"; $baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); file_put_contents($baseDir . '/.htaccess', $content);