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 }} }