[GH-ISSUE #4716] _locations.conf missing jinja2 variables? #2995

Open
opened 2026-02-26 07:37:32 +03:00 by kerem · 1 comment
Owner

Originally created by @Oratorian on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4716

I ran into a wierd problem with custom location.

my webapp runs its own location like /login
so for npm to forward that corretly you need to set location to /help/ and proxy_pass ip:port/; trailing slash is important

then i stumbled upton the templates folder and _locations.conf uses proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};

but {{ forward_path }} is nerver set anywhere so the final proxy_pass in nginxs .conf always ends in
proxy_pass http(s)://ip:port; and missing the trailing slash.

Originally created by @Oratorian on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4716 I ran into a wierd problem with custom location. my webapp runs its own location like /login so for npm to forward that corretly you need to set location to /help/ and `proxy_pass ip:port/;` **trailing slash is important** then i stumbled upton the templates folder and _locations.conf uses `proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};` but {{ forward_path }} is nerver set anywhere so the final proxy_pass in nginxs .conf always ends in `proxy_pass http(s)://ip:port;` and missing the trailing slash.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 25, 2026):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:3956305652 --> @github-actions[bot] commented on GitHub (Feb 25, 2026): Issue is now considered stale. If you want to keep it open, please comment :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2995
No description provided.