Skip to content

Commit 89d10a9

Browse files
committed
fix http 502 when aquiring kc assets
1 parent 3dc59b6 commit 89d10a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deployment/nginx/nginx.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,14 @@ http {
126126
# DONT remove this. It will cause upstream server to respond http 400
127127
# due to "connection" header is closed instead of keep-alive and incorrect host header
128128
proxy_set_header Connection "";
129-
proxy_set_header Host $host;
129+
proxy_set_header Host "";
130130
}
131131

132132
location / {
133133
proxy_pass http://modcolle_servers;
134-
proxy_set_header Host $host;
135134
}
136135

137136
# error_page 404 /404.html;
138137
# error_page 500 502 503 504 /50x.html;
139138
}
140-
}
139+
}

0 commit comments

Comments
 (0)