【发布时间】:2019-01-21 02:30:00
【问题描述】:
我的位置如下:
location / {
set $api_name "Web";
proxy_intercept_errors on;
set $upstream upstream_a;
if ( $kms_in_cookie != "not_set" ) {
set $upstream $kms_in_cookie;
}
if ( $upstream_in_cookie != "not_set" ) {
set $upstream $upstream_in_cookie;
}
if ($cookie_zak != "") {
set $upstream upstream_b;
}
proxy_pass http://$upstream;
health_check uri=/healthcheck interval=30 fails=3 passes=3;}
一旦我重新启动我的 NGINX,它就失败了:
nginx: [emerg] health check requires an upstream in
有人对此有想法吗?这个错误是什么意思?
【问题讨论】:
-
我也有同样的bug,你知道是什么意思吗?
-
同样的错误。这有什么更新吗?
-
据我所知,当使用 health_check 时,您不能使上游可变。
-
我有同样的错误。我还没有找到解决方案。
标签: nginx nginx-location