Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstream is not found. ngx_dynamic_upstream_handler:168 #31

Open
eliteaz opened this issue Dec 4, 2023 · 0 comments
Open

upstream is not found. ngx_dynamic_upstream_handler:168 #31

eliteaz opened this issue Dec 4, 2023 · 0 comments

Comments

@eliteaz
Copy link

eliteaz commented Dec 4, 2023

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 ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant