mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #3678] Location directive ( location /{ ) causing proxy host to land at openresty landing page #2435
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#2435
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 @cirnoscodingclass on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3678
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
When working under the
Advancedtab ofEdit Proxy HostI place the following addition to the config dialogue boxWhen this is added my sites redirects me to this screen
I have also tried to use
=/in front of the location directive but none of my changes appear to register. Also tried to add this configuration in theCustom locationstab but this shuts down the proxy host.Adding the lines directly to the proxy_host .conf file causes the proxy_host to go offline.
Nginx Proxy Manager Version
2.11.1
Expected behavior
For the headers to be applied to the location directive without redirecting traffic to the openresty page.
Screenshots

Operating System
Debian 12 Bookworm
Additional context
I am trying run danbooru, the SSL certificate is DNS challenged by cloudflare
@unixweb commented on GitHub (Apr 4, 2024):
Same issue here
@delsonffilho commented on GitHub (Apr 12, 2024):
@unixweb Did you tested in the version 2.11.1?
@barrelltitor commented on GitHub (Apr 15, 2024):
@delsonffilho I can confirm this also happens on 2.11.1. I was pulling my hairs out trying to figure out what I broke
@delsonffilho commented on GitHub (Apr 15, 2024):
I tested on 2.10.4 and it works.
@thebodzio commented on GitHub (Apr 17, 2024):
I can confirm the problem with version > 2.10.x (running container from official image on Arch with rootless podman)
Hint: I noticed that whenever I tried to set up a custom location for a proxy host in 2.11.x, the config file associated with the edited host was removed from
nginx/proxy_hosts. At the same time entry in database appears to be intact, since the host is still listed and remains editable with no data loss, but goes “Offline” as some previous commenters indicated.@unixweb commented on GitHub (Apr 17, 2024):
Yes ...
@s0mm3rb commented on GitHub (Apr 25, 2024):
can confirm 2.10.4 works
custom location in 2.11.1 seems to be broken
@masterwishx commented on GitHub (Apr 26, 2024):
Confirm, same issue with latest version goes back to 2.10.4
@irrwitzer42 commented on GitHub (May 2, 2024):
At least for me, 2.11.2 seems to have fixed the issues with custom locations!
@tosolini commented on GitHub (May 4, 2024):
2.11.2 not working, send me to openresty
@Babyyoda777 commented on GitHub (May 7, 2024):
Broken for 2.11.1 and 2.11.2 whilst 2.11.1 was fully broken, 2.11.2 now just sends to blank page.
@StuFrankish commented on GitHub (May 29, 2024):
Can confirm, also having this issue.
Running on v2.11.2
@wakawakaaa commented on GitHub (Nov 19, 2024):
same issue. nginx proxy manager is broken v2.12.1
Error "Could not delete file:" occurs only when setting ssl for a domain in the gui.
@github-actions[bot] commented on GitHub (May 23, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@barrelltitor commented on GitHub (May 23, 2025):
👍
@barrelltitor commented on GitHub (May 23, 2025):
The stale bot is probably the silliest thing people do on github. No developer wants to tackle fixing it, so let's just close it huh?
@wolicape commented on GitHub (Jun 16, 2025):
Anything new about it ? I had to downgrade my security level by removing headers so it's a real concern.
@AjianNie commented on GitHub (Sep 21, 2025):
2025.09 this bug is still affecting everyone, unbelievably.