mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-09-22 08:36:24 +08:00
fix bug
This commit is contained in:
parent
6355fed45c
commit
a7fa012705
|
@ -14,7 +14,7 @@ public class LocationConf {
|
||||||
public static String generate(Slb slb, VirtualServer vs, Group group, String upstreamName)throws Exception {
|
public static String generate(Slb slb, VirtualServer vs, Group group, String upstreamName)throws Exception {
|
||||||
StringBuilder b = new StringBuilder(1024);
|
StringBuilder b = new StringBuilder(1024);
|
||||||
|
|
||||||
b.append("location ").append(getPath(slb, vs, group)).append("{\n");
|
b.append("location ").append(getPath(slb, vs, group)).append(" {\n");
|
||||||
b.append("proxy_set_header Host $host").append(";\n");
|
b.append("proxy_set_header Host $host").append(";\n");
|
||||||
|
|
||||||
b.append("set $upstream ").append(upstreamName).append(";\n");
|
b.append("set $upstream ").append(upstreamName).append(";\n");
|
||||||
|
|
Loading…
Reference in a new issue