2
0
Эх сурвалжийг харах

fix: non working https with virtual path

Nicolas Duchon 3 жил өмнө
parent
commit
28c73e5b52
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -389,7 +389,7 @@ server {
 	{{ else }}
 		{{ range $path, $container := $paths }}
 			{{ $sum := sha1 $path }}
-			{{ $upstream := printf "%s-%s" $host $sum }}
+			{{ $upstream := printf "%s-%s" $upstream_name $sum }}
 			{{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "Vhostroot" $vhost_root) }}
 		{{ end }}
 	{{ end }}