mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1789] "proxy_pass" cannot have URI part in location given by regular expression #1321
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @binsentsu on GitHub (Jan 22, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1789
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Within version 2.9.11 regular expressions were supported with custom location configurations.
Example:
~ ^(/~[^/]+)?(?:/|/path)?$Now upgraded to 2.9.15 and this functionality is not working anymore.
Nginx shows error when bringing up the proxy:
"proxy_pass" cannot have URI part in location given by regular expressionIt seems to me that commit
github.com/NginxProxyManager/nginx-proxy-manager@1f879f67a9 (diff-d59b1035c5)introduced in 2.9.13 has changed this behavior.Within 2.9.11 the proxy_pass referenced variable $upstream which is likely to work together with regular expression locations.
Don't know why code stepped away from using a variable, but would it be possible to re-enable this 'feature'?
Nginx Proxy Manager Version
v2.9.15
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Working as in 2.9.11
Screenshots
Operating System
Additional context
@bytebone commented on GitHub (Mar 7, 2023):
It's a little crazy to me that this has gone completely unanswered and unseen for over a year. I am stuck with NPM not wanting to use RegEx, and find it infuriating. I can see that the expressions are being applied into the config file, yet they simply don't work. And other times, when I try to apply the config, the host just gets disabled.
What reason can there be to not have this working? Is there a switch somewhere I can toggle, a module I should install, or anything else I can do to get this working? If there's simply no option to use RegEx, and no change in sight, I might have to drop NPM alltogether, which would be a shame really.
I am experiencing this on NPM v2.9.18.
@github-actions[bot] commented on GitHub (Feb 26, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 11, 2025):
Issue was closed due to inactivity.
@7heMech commented on GitHub (Nov 13, 2025):
Is it still the case?