From 141e728c0f2c1441d3ceb0e3d193f86624ce2565 Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 16 Sep 2014 22:47:07 +0200 Subject: [PATCH] fix last commits --- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.http.30.nginx.php b/scripts/jobs/cron_tasks.inc.http.30.nginx.php index ae88157f..9ccd0d2d 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -606,7 +606,9 @@ class nginx { $path_options .= "\t\t" . 'autoindex on;' . "\n"; $this->vhost_root_autoindex = false; } - $path_options.= "\t\t" . 'index index.php index.html index.htm;'."\n"; + else { + $path_options.= "\t\t" . 'index index.php index.html index.htm;'."\n"; + } // $path_options.= "\t\t" . 'try_files $uri $uri/ @rewrites;'."\n"; // check if we have a htpasswd for this path // (damn nginx does not like more than one @@ -637,7 +639,9 @@ class nginx { $path_options .= "\t\t" . 'autoindex on;' . "\n"; $this->vhost_root_autoindex = false; } - $path_options .= "\t\t" . 'index index.php index.html index.htm;'."\n"; + else { + $path_options .= "\t\t" . 'index index.php index.html index.htm;'."\n"; + } $path_options .= "\t".'} ' . "\n"; } // }