diff --git a/scripts/jobs/cron_tasks.inc.http.30.nginx.php b/scripts/jobs/cron_tasks.inc.http.30.nginx.php index e692a007..ae88157f 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -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";