Skip to content
Snippets Groups Projects
Commit 25a2cb8c authored by Robert Scheck's avatar Robert Scheck
Browse files

Only request "IndexIgnore" if mod_autoindex is loaded

parent f25c8946
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,6 @@ Satisfy All
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>
......@@ -9,4 +9,6 @@ deny from all
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>
......@@ -9,4 +9,6 @@ deny from all
</ifModule>
# section for Apache 2.2 and 2.4
<ifModule mod_autoindex.c>
IndexIgnore *
</ifModule>
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment