From 5c2280df84afe974f85f8d3622c2597cc5fa6bf7 Mon Sep 17 00:00:00 2001 From: Jonas Svatos Date: Thu, 8 Oct 2015 12:03:28 +0200 Subject: [PATCH] fix condition for default config location Signed-off-by: Jonas Svatos --- nginx.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index 6b45b90..6300d89 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -139,7 +139,7 @@ server { {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }} include {{ printf "/etc/nginx/vhost.d/%s" $host }}; - {{ else if (exists "/etc/vhost.d/default") }} + {{ else if (exists "/etc/nginx/vhost.d/default") }} include /etc/nginx/vhost.d/default; {{ end }} @@ -151,7 +151,7 @@ server { {{ end }} {{ if (exists (printf "/etc/nginx/vhost.d/%s_location" $host)) }} include {{ printf "/etc/nginx/vhost.d/%s_location" $host}}; - {{ else if (exists "/etc/vhost.d/default_location") }} + {{ else if (exists "/etc/nginx/vhost.d/default_location") }} include /etc/nginx/vhost.d/default_location; {{ end }} } @@ -165,7 +165,7 @@ server { {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }} include {{ printf "/etc/nginx/vhost.d/%s" $host }}; - {{ else if (exists "/etc/vhost.d/default") }} + {{ else if (exists "/etc/nginx/vhost.d/default") }} include /etc/nginx/vhost.d/default; {{ end }} @@ -177,7 +177,7 @@ server { {{ end }} {{ if (exists (printf "/etc/nginx/vhost.d/%s_location" $host)) }} include {{ printf "/etc/nginx/vhost.d/%s_location" $host}}; - {{ else if (exists "/etc/vhost.d/default_location") }} + {{ else if (exists "/etc/nginx/vhost.d/default_location") }} include /etc/nginx/vhost.d/default_location; {{ end }} }