fix directory index for folders on nginx

This commit is contained in:
Stricted
2014-09-16 21:15:08 +02:00
parent 31f3639c15
commit cbf47f46ea

View File

@@ -631,7 +631,7 @@ class nginx {
$this->vhost_root_autoindex = false;
} else {
$path_options .= "\t".'location ' . $path . ' {' . "\n";
if ($this->vhost_root_autoindex) {
if ($this->vhost_root_autoindex || $row['options_indexes'] != '0') {
$path_options .= "\t\t" . 'autoindex on;' . "\n";
$this->vhost_root_autoindex = false;
}