-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fixes custom location with capture groups #1559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…pture group exists in location
|
This is an automated message from CI: Docker Image for build 1 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
|
Hi - sorry to be "that person", but I'm not well versed in github or linux and just use unRAID + dockers to manage my media server. Do I have to do anything special to get this issue corrected or will this ultimately be an update that gets pushed out automatically? Thank you |
|
@rainman369 See https://nginxproxymanager.com/upgrading. But since you use unraid, it might be different, I have no idea how unraid works. Maybe something like this? But first you have to wait until this is merged and a new release has been published. You can use the watch button at the top of the github page and select custom to select notifications only on new releases. |
Ah yes, I guess waiting for the release to actually come out would help :D Thank you! |
…uri if it is just a slash
|
This is an automated message from CI: Docker Image for build 2 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
|
@chaptergy I think you inadvertently caused the same issue by naming both location and proxy variables the same variable. Those need to be different... I would suggest keeping Shall I open another issue up? |
|
@causefx I am assuming that variables should be scoped to their respective location block, however there seems to be no documentation on that. But since nginx has lots of weird little features it's entirely possible this is not the case. |
|
yeah i hear ya man. either way no worries :) |
$upstreamto$targetUriin ngix config templates to prevent collision$request_urito the url of a location if the location contains an opening bracket(, a closing bracket(and a tilde~signaling a regex capture group$request_uriif it is basically empty, so just a slash/as this would break domain-only requests (requests without a path)Fixes #1319