nginx-proxy-manager/backend/internal
Tom Winnerl ea4109965f fix(review): count a resolver-only main target as a warning, not healthy
A name that only resolves through /etc/hosts or a resolv.conf search
domain (resolver_mismatch) works for a static upstream only. nginx
resolves a proxy_pass with a variable per request through its own
resolver, which reads neither: the main target of every proxy host
(proxy_pass $server) and a custom location in dynamic mode fail at
request time. The health monitor and the config test still counted such
a target as ok, so the host showed healthy.

The probe is unchanged (POST /upstreams/check still answers ok with code
resolver_mismatch). Only the interpretation is per target:
forResolverTarget() marks a resolver_mismatch as not ok, with a message
that says requests fail, for the main target and the locations saved
(health monitor, from meta.nginx_locations) or rendered (config test,
from the dry run's location states) in dynamic mode. Static locations
and streams stay ok. The frontend shows resolver_mismatch as a yellow
warning whether ok or not, and the host status lists it as "nginx can't
resolve" instead of "not reachable".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:03:56 +01:00
..
2fa.js Updated backend packages 2026-08-22 23:10:26 +10:00
access-list.js Stop non-admins injecting nginx directives through host fields 2026-11-10 08:20:02 +10:00
audit-log.js Updated backend packages 2026-08-22 23:10:26 +10:00
certificate.js fix(review): leave hosts removed for a certificate request alone until it is done 2026-11-11 13:48:58 +01:00
dead-host.js fix(review): undo a delete or disable when nginx can't apply the config removal 2026-11-13 19:24:45 +01:00
host-test.js fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
host.js feat(nginx): render custom locations on their own, quarantine the broken ones 2026-11-14 09:03:56 +01:00
ip_ranges.js Fix #4833 supports the usual proxy env vars for outgoing admin related requests 2025-11-05 15:16:42 +10:00
log-viewer.js fix: Use forwarding_host instead of the renamed forward_ip column 2026-09-23 07:00:19 -03:00
nginx.js feat: test a host's config without saving (POST /api/nginx/<type>/test) 2026-11-14 09:03:56 +01:00
proxy-host.js fix(review): merge a proxy or redirection host update with the row read under the lock 2026-11-13 19:30:23 +01:00
redirection-host.js fix(review): merge a proxy or redirection host update with the row read under the lock 2026-11-13 19:30:23 +01:00
remote-version.js Tweaks to showing new version available 2025-11-13 11:20:31 +10:00
report.js Fix review findings from PR #6029 2026-11-09 22:53:53 +10:00
setting.js feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
stream.js fix(review): undo a delete or disable when nginx can't apply the config removal 2026-11-13 19:24:45 +01:00
token.js Check a dummy hash when a login names no account 2026-11-05 18:29:52 +01:00
upstream.js fix(review): count a resolver-only main target as a warning, not healthy 2026-11-14 09:03:56 +01:00
user.js Fix second round of review findings from PR #6029 2026-11-09 23:39:26 +10:00