mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 01:15:51 +03:00
[GH-ISSUE #929] Adding a Custom Location takes the Site offline #789
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#789
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 @pwfraley on GitHub (Mar 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/929
Are you in the right place?
Checklist
jc21/nginx-proxy-manager:latestdocker image? YesDescribe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Site stays online and is reachable. The /api Url is also reachable
Operating System
Additional context
Basically I am trying to host a modern SPA Website. The Frontend is created using quasar/vue 3 and the Backend, which is a simple rest api is done using Dotnet Core C#. I want to host the quasar App under / and the api under /api.
@l4rm4nd commented on GitHub (Mar 26, 2021):
Your custom location basically broke the nginx config somehow. Take a look at the config itself for your proxy host and try to understand, why its malformed. Maybe you can find some helping infos in the logs.
@pwfraley commented on GitHub (Apr 6, 2021):
I figuered it out. When I first added the proxy host I had a typo in the backend service. Fixing the typo did not fix it in the config. I had to delete the entire proxy host and then recreate it. Then all worked fine.
@dscpt commented on GitHub (Feb 3, 2024):
There's still something not right here, I have the same issue...
When a custom location is added there is no conf file generated and the proxy host shows as offline.
I was able to work around it by ignoring the gui and adding the extra location into the advances box on the proxy site tab.
@JaroslavMitrovic commented on GitHub (Feb 6, 2024):
Hi.
I have the same issue and solved it like @dscpt did.
When I add any Custom Location with the GUI-Dialog the site goes offline.
After deletion of all Custom Locations, the Site is Online again.
I copied 3 n.conf from an older backup into the .../proxy-host Folder,
and only two of them were applied, and when the Site is offline, the one file got deleted by nginx.
After that, I removed the whole Site and created a new Site. The Filename was one higher, then the highest filename.
It also didn't work with the Custom Location, so I deleted it and recreated it manually.
The File number is now 6.conf, but the old file 2.conf is still in the Folder, but it is not listed in the UI.
thx for the read and the workaround and greetings from Hamburg, Germany
@MeesJ commented on GitHub (Feb 8, 2024):
After I got a new installation of NPM I started having this issue as well. Are there any workarounds that don't require messing around with the configuration files?
@b1nary-b0b commented on GitHub (Feb 8, 2024):
I have the same issue.
@ghost commented on GitHub (Feb 9, 2024):
This problem can only be said to have arisen again!
@jricardooliveira commented on GitHub (Feb 9, 2024):
Same issue here too... This used to work and it's not working in the latest version.
@alessiodam commented on GitHub (Feb 12, 2024):
Same issue around here, I need to add /swagger to my site.
When I create an extra host for swagger, it works so it isn't on my backend.
Here's the conf:

@AkshayRao27 commented on GitHub (Feb 13, 2024):
See if https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886 works for you?
@hans-holgersson commented on GitHub (Feb 13, 2024):
I have the same problem with "custom location".
I am using NPM in docker.
This trick (https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886) solves the problem - at least for now.
10x.
@washingtonsousa commented on GitHub (Feb 16, 2024):
I'm having the same problem here, workaround overwriting the gui using raw text solved the problem, on container logs I've seen erros of trying to delete files on directory.
Its so impressive sometimes a pull request that doest change anything can stop working something that never was a problem before...
@pageagency commented on GitHub (Feb 16, 2024):
Same error. It looks like it was introduced on the last update? Is there a real solution for this?
@AkshayRao27 commented on GitHub (Feb 17, 2024):
Till there's an update and a real fix, https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886 seems to be a workaround that's fixing it for several people.
@github-actions[bot] commented on GitHub (Aug 24, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@hans-holgersson commented on GitHub (Aug 24, 2024):
hi ... has anyone had a chance to work on this issue?
@alessiodam commented on GitHub (Aug 28, 2024):
It's a user issue. If you make it correctly, it won't take it offline.
@hans-holgersson commented on GitHub (Aug 30, 2024):
probably you are right. In this case tell me please where is the the error, which causes the troubles in the folowing setup:
@hans-holgersson commented on GitHub (Aug 30, 2024):
So, to be clear ...
I want to instantiate a location in order to address https://www.site.com/personal to be served from the root of the webservice runnig on host 192.168.0.1 on tcp port 81.
This is what i am trying to implement, but when i save the config the site goes offline.
How could i do this to work?
@pageagency commented on GitHub (Aug 30, 2024):
I don't know about personal but I've had the same issue with /admin and gave up.
@hans-holgersson commented on GitHub (Aug 30, 2024):
That "personal" is the name of the location. It coul be "admin", or "login", or anything else...
@github-actions[bot] commented on GitHub (Apr 28, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@alessiodam commented on GitHub (Apr 28, 2025):
I gave up too. Just switch to NGINX config files to be honest.
@hans-holgersson commented on GitHub (Apr 29, 2025):
i will give it a try with the latest npm ...
@github-actions[bot] commented on GitHub (Jan 1, 2026):
Issue is now considered stale. If you want to keep it open, please comment 👍