fix directory index for folders on nginx #2

This commit is contained in:
Stricted
2014-09-16 21:24:50 +02:00
parent cbf47f46ea
commit 024d01b300

View File

@@ -598,7 +598,9 @@ class nginx {
$path_options .= "\t".'# '.$path."\n";
if ($path == '/') {
$this->vhost_root_autoindex = true;
if ($row['options_indexes'] != '0') {
$this->vhost_root_autoindex = true;
}
$path_options .= "\t".'location ' . $path . ' {' . "\n";
if ($this->vhost_root_autoindex) {
$path_options .= "\t\t" . 'autoindex on;' . "\n";