diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-02-20 14:25:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 14:25:09 +0100 |
commit | d3f774d0353052730fc079751fa8991e858f52c9 (patch) | |
tree | 289c7e00d20da11b3e7b9e402de7cfcf8141c020 /lib/private | |
parent | 24fc7dc30f72afa5900801f297757d947169ca0a (diff) | |
parent | 25a2cb8c6e821df0360d1843c5266cbf7acc2b55 (diff) | |
download | nextcloud-server-d3f774d0353052730fc079751fa8991e858f52c9.tar.gz nextcloud-server-d3f774d0353052730fc079751fa8991e858f52c9.zip |
Merge pull request #3505 from robert-scheck/autoindex
Only request "IndexIgnore" if mod_autoindex is loaded
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Setup.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 321e8ea4c66..b20614f8971 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -492,7 +492,9 @@ class Setup { $content.= "Satisfy All\n"; $content.= "</ifModule>\n\n"; $content.= "# section for Apache 2.2 and 2.4\n"; + $content.= "<ifModule mod_autoindex.c>\n"; $content.= "IndexIgnore *\n"; + $content.= "</ifModule>\n"; $baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); file_put_contents($baseDir . '/.htaccess', $content); |