Forráskód Böngészése

fix: non working https with virtual path

Nicolas Duchon 3 éve
szülő
commit
28c73e5b52
1 módosított fájl, 1 hozzáadás és 1 törlés
  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 }}