This commit is contained in:
Daniel (Shijun) Qian 2017-08-18 09:45:15 +00:00 committed by GitHub
commit 6f65ed083e

View file

@ -312,13 +312,13 @@ func buildProxyPass(host string, b interface{}, loc interface{}) string {
rewrite %s(.*) /$1 break;
rewrite %s / break;
proxy_pass %s://%s;
%v`, path, location.Path, proto, location.Backend, abu)
%v`, path, location.Path, proto, upstreamName, abu)
}
return fmt.Sprintf(`
rewrite %s(.*) %s/$1 break;
proxy_pass %s://%s;
%v`, path, location.Redirect.Target, proto, location.Backend, abu)
%v`, path, location.Redirect.Target, proto, upstreamName, abu)
}
// default proxy_pass