From 024d01b300e1d53111cc5c67c47b4085994ba0dd Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 16 Sep 2014 21:24:50 +0200 Subject: [PATCH] fix directory index for folders on nginx #2 --- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";