nginx-proxy-manager/backend/templates
Tom Winnerl a30fdeb7ab fix(review): keep $uri live in rewrite-phase statements of the cached-asset copy
The nested asset location replaced $uri in every statement of its copy of the advanced config with a snapshot taken before anything ran. A guard after the user's own rewrite (rewrite ^/files/alias/(.*)$ /files/private/$1; if ($uri ~ ^/files/private/) { return 403; }) then checked the old path and the protected asset was proxied. Rewrite-phase statements (set, if, rewrite, return, break, set_*) now read $uri itself (they run before the generated rewrite), and the snapshot is taken again right before the generated rewrite for the later phases. Semantics harness case /crwg/: the guarded asset gets 403 (real nginx, static and dynamic).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:03:56 +01:00
..
_access.conf Fix a proxy host whose access list can't be loaded is now denied to 2026-11-09 22:04:32 +10:00
_assets.conf v2.1.0 (#293) 2020-02-19 15:55:06 +11:00
_certificates.conf Add SSL certificate to TCP streams if certificate in database 2025-02-04 17:12:04 +10:00
_certificates_stream.conf Fix whitespace in nginx stream config 2025-02-04 17:14:07 +10:00
_exploits.conf v2.1.0 (#293) 2020-02-19 15:55:06 +11:00
_forced_ssl.conf feat: add trust_forwarded_proto option for SSL redirect handling in reverse proxy scenarios 2026-01-31 13:11:47 +00:00
_header_comment.conf v2.1.0 (#293) 2020-02-19 15:55:06 +11:00
_hsts.conf fix: apply the HSTS sub-domains setting per host 2026-10-24 16:38:10 +02:00
_hsts_map.conf fix: apply the HSTS sub-domains setting per host 2026-10-24 16:38:10 +02:00
_listen.conf http2 directive 2024-10-24 01:30:14 +03:00
_location.conf fix(review): run cached assets of a location through its whole advanced config 2026-11-14 09:03:56 +01:00
_location_assets.conf fix(review): run cached assets of a location through its whole advanced config 2026-11-14 09:03:56 +01:00
_location_body.conf fix(review): keep $uri live in rewrite-phase statements of the cached-asset copy 2026-11-14 09:03:56 +01:00
dead_host.conf feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
default.conf Add support for nginx 444 default response 2023-05-22 11:59:50 +10:00
ip_ranges.conf v2.1.0 (#293) 2020-02-19 15:55:06 +11:00
letsencrypt-request.conf All logs in single folder 2021-06-29 23:07:54 +02:00
proxy_host.conf fix(review): regenerate locations when the dynamic DNS setting changed 2026-11-14 09:03:56 +01:00
redirection_host.conf feat(nginx): serialised configure that tests, rolls back and repairs other hosts 2026-11-11 13:47:08 +01:00
stream.conf Add reuseport to improve performance and reduce packet drops 2026-02-04 12:14:10 +00:00