mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-20 23:22:50 +00:00
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>
|
||
|---|---|---|
| .. | ||
| _access.conf | ||
| _assets.conf | ||
| _certificates.conf | ||
| _certificates_stream.conf | ||
| _exploits.conf | ||
| _forced_ssl.conf | ||
| _header_comment.conf | ||
| _hsts.conf | ||
| _hsts_map.conf | ||
| _listen.conf | ||
| _location.conf | ||
| _location_assets.conf | ||
| _location_body.conf | ||
| dead_host.conf | ||
| default.conf | ||
| ip_ranges.conf | ||
| letsencrypt-request.conf | ||
| proxy_host.conf | ||
| redirection_host.conf | ||
| stream.conf | ||