From 52b45d74cb9535330b5f73d0a03b7b14df9f9a48 Mon Sep 17 00:00:00 2001 From: Cosmin Stroe Date: Thu, 3 Aug 2017 22:24:14 -0500 Subject: [PATCH] Use correct port number for the upstream. --- plugins/nginx-vhosts/templates/nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/templates/nginx.conf.sigil b/plugins/nginx-vhosts/templates/nginx.conf.sigil index 50df0aae6..181f8d8c0 100644 --- a/plugins/nginx-vhosts/templates/nginx.conf.sigil +++ b/plugins/nginx-vhosts/templates/nginx.conf.sigil @@ -119,6 +119,6 @@ upstream {{ $.APP }}-{{ $upstream_port }} { {{ $listener_list := $listeners | split ":" }} {{ $listener_ip := index $listener_list 0 }} {{ $listener_port := index $listener_list 1 }} - server {{ $listener_ip }}:{{ $listener_port }};{{ end }} + server {{ $listener_ip }}:{{ $upstream_port }};{{ end }} } {{ end }}{{ end }}