ngx_dynamic_upstream icon indicating copy to clipboard operation
ngx_dynamic_upstream copied to clipboard

upstream is not found. ngx_dynamic_upstream_handler:168

Open eliteaz opened this issue 7 months ago • 0 comments

Don't know if the module is suitable for latest nginx version but have compiled it for nginx-1.25.3 Loaded module as well and tried to configure upstream and zone:

upstream dev-game-cache-1 {
    zone zone_for_backends 10m;
    server adv-dev-shared-srv01.example.org:8921;
    server adv-dev-shared-srv02.example.org:8921;
}

using such a location:

location / {
    proxy_pass  https://dev-game-cache-1/;
    proxy_ssl_trusted_certificate /etc/ssl/certs/backend.ca.pem;
    proxy_ssl_name                backend.server;
    proxy_ssl_verify              on;
    proxy_ssl_protocols           TLSv1.2 TLSv1.3;
    dynamic_upstream;
}

try to send a request and get an error even upstream is correct [error] 1885350#1885350: *13736 upstream is not found. ngx_dynamic_upstream_handler:168

if I understand correctly code says that if uscf == NULL then zone can't retrieve https://github.com/cubicdaiya/ngx_dynamic_upstream/blob/7220bd4ffd823e28b0abce2f60707be5478e2d71/src/ngx_dynamic_upstream_module.c#L163 What am I do'ing wrong ? :)

eliteaz avatar Dec 04 '23 11:12 eliteaz