diff options
author | Robert Scheck <robert@fedoraproject.org> | 2017-02-16 11:45:11 +0100 |
---|---|---|
committer | Robert Scheck <robert@fedoraproject.org> | 2017-02-20 13:09:15 +0100 |
commit | 25a2cb8c6e821df0360d1843c5266cbf7acc2b55 (patch) | |
tree | e84c6d9c4ebdf04b5b74318cf8841f876b62d0ca /lib/private/Setup.php | |
parent | f25c89461c986b31171270e2186d000030b8df2e (diff) | |
download | nextcloud-server-25a2cb8c6e821df0360d1843c5266cbf7acc2b55.tar.gz nextcloud-server-25a2cb8c6e821df0360d1843c5266cbf7acc2b55.zip |
Only request "IndexIgnore" if mod_autoindex is loaded
Signed-off-by: Robert Scheck <robert@fedoraproject.org>
Diffstat (limited to 'lib/private/Setup.php')
-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); |