From 598292e9f382925b6724b0cb18677b1ba8d1e972 Mon Sep 17 00:00:00 2001 From: Ryan Schmukler Date: Tue, 29 Sep 2015 17:22:39 -0400 Subject: [PATCH] fix(nginx.tmpl): fix default vhost path recognition --- nginx.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index 08f6c01..e4ff85a 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -150,7 +150,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 }} } @@ -176,7 +176,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 }} }