yaoweibin / nginx_upstream_check_module

Health checks upstreams for nginx
http://github.com/yaoweibin/nginx_upstream_check_module
2.05k stars 483 forks source link

1.15.2 使用 upstream_check 最新master代码编译,访问status,报500错误,负载却是正常的,,求解 #188

Open javacheng7 opened 6 years ago

javacheng7 commented 6 years ago

配置如下:

upstream backend2 { server localhost:8081; server localhost:8080;

    check interval=3000 rise=2 fall=5 timeout=1000;
}
server {
    listen       80;
    server_name m6.com;

    location ~ ^/index2.jsp {
            proxy_pass http://backend2;
    }

    location ~ /status {
            check_status;
            access_log off;
    }

}

访问 /status,提示500,,,

2018/08/15 17:45:41 [error] 54468#0: *213 http upstream check module can not find any check server, make sure you've added the check servers, client: 192.168.79.1, server: m6.com, request: "GET /status HTTP/1.1", host: "m6.com"

是不是不支持1.15.2 还是什么问题????

morfien101 commented 5 years ago

+1 on this

FFCZ commented 5 years ago

+1 on this http upstream check module can not find any check server, make sure you've added the check servers

ipcpu commented 5 years ago

好像补丁都是针对特定版本的,没有做1.15的补丁。我是1.13的也不行。

iCraneZhou commented 5 years ago

+1

saliven1970 commented 4 years ago

对,必须跟补丁的版本号匹配下载特定版本的nginx,然后再执行patch,因为patch是针对特定版本中的源代码的,其他版本中这部分源代码如果有修改了,那patch自然也就不匹配了。nginx版本号第2位偶数才是稳定版,所以作者只是针对稳定版本出的patch。