From cbf47f46ea682c07f8c28dc094f75a610197608a Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 16 Sep 2014 21:15:08 +0200 Subject: [PATCH] fix directory index for folders on nginx --- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 2 +- 1 file changed, 1 insertion(+), 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 d7d2b0d8..e692a007 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -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; }