[GH-ISSUE #3508] No custom location possible! #2335

Open
opened 2026-02-26 07:35:08 +03:00 by kerem · 14 comments
Owner

Originally created by @XHyperDEVX on GitHub (Jan 29, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3508

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

I cannot define a custom subpath. Today at noon everything still worked, but not anymore. I have reinstalled NPM, same error. What is the reason?
When I put it in like this, the entry goes offline. If I take it out, it works again. It seems to be a syntax problem. I can't explain it any other way
image
the npm container is in the same network as the apache2 container. [-> before it worked the same way. it also does not work if i replace "apache2" with the ip of the container]

Nginx Proxy Manager Version
v2.11.1

To Reproduce
Steps to reproduce the behavior:

  1. Add"Custom Location" Entry

Expected behavior
The entry does not go offline

Screenshots
see above

Operating System
Debian with Docker

Additional context
no

Originally created by @XHyperDEVX on GitHub (Jan 29, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3508 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** <!-- A clear and concise description of what the bug is. --> I cannot define a custom subpath. Today at noon everything still worked, but not anymore. I have reinstalled NPM, same error. What is the reason? When I put it in like this, the entry goes offline. If I take it out, it works again. It seems to be a syntax problem. I can't explain it any other way ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/68189420/c408e698-4929-4032-a426-f87468d2d3a6) the npm container is in the same network as the apache2 container. [-> before it worked the same way. it also does not work if i replace "apache2" with the ip of the container] **Nginx Proxy Manager Version** v2.11.1 **To Reproduce** Steps to reproduce the behavior: 1. Add"Custom Location" Entry **Expected behavior** The entry does not go offline **Screenshots** see above **Operating System** Debian with Docker **Additional context** no
Author
Owner

@irrwitzer42 commented on GitHub (Jan 29, 2024):

I can second this observation.
What worked in 2.10.4 just fine, does not with 2.11.1:

image

Unfortunately the config file gets deleted / not created, so I could not check it any deeper.

<!-- gh-comment-id:1915660154 --> @irrwitzer42 commented on GitHub (Jan 29, 2024): I can second this observation. What worked in 2.10.4 just fine, does not with 2.11.1: ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/25076496/554fad6b-01b7-455b-adf7-eb759152d806) Unfortunately the config file gets deleted / not created, so I could not check it any deeper.
Author
Owner

@XHyperDEVX commented on GitHub (Jan 29, 2024):

i have the same error as you in the picture. we definitely have the same problem.
Edit: i have now reset my instance to V2.10.4 and it works fine again. so i can also confirm this statement. it seems to be a bug

<!-- gh-comment-id:1915663694 --> @XHyperDEVX commented on GitHub (Jan 29, 2024): i have the same error as you in the picture. we definitely have the same problem. Edit: i have now reset my instance to V2.10.4 and it works fine again. so i can also confirm this statement. it seems to be a bug
Author
Owner

@irrwitzer42 commented on GitHub (Jan 29, 2024):

This seems to be a duplicate of https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3484 and https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3474
I rolled back to 2.10.4 on all my NPMs for now. Waiting for the next release.

<!-- gh-comment-id:1915712008 --> @irrwitzer42 commented on GitHub (Jan 29, 2024): This seems to be a duplicate of https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3484 and https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3474 I rolled back to 2.10.4 on all my NPMs for now. Waiting for the next release.
Author
Owner

@RajawatBanna commented on GitHub (Jan 31, 2024):

I am also facing this issue and done hello lot of googling, changing rule until i found this page.

<!-- gh-comment-id:1918434754 --> @RajawatBanna commented on GitHub (Jan 31, 2024): I am also facing this issue and done hello lot of googling, changing rule until i found this page.
Author
Owner

@Wek-mad commented on GitHub (Feb 2, 2024):

I also having the same error, some how the add_header cannot write to the conf file and it made the proxy stop.
hope this bug fix soon

<!-- gh-comment-id:1924599854 --> @Wek-mad commented on GitHub (Feb 2, 2024): I also having the same error, some how the add_header cannot write to the conf file and it made the proxy stop. hope this bug fix soon
Author
Owner

@jackfalveyiv commented on GitHub (Feb 3, 2024):

Running NPM on Unraid, ran into this problem on a fresh new install of the docker. Hosts were working fine on the old docker, but the same configuration under the custom location that previously worked immediately makes the proxy host go offline on the new one.

<!-- gh-comment-id:1925033112 --> @jackfalveyiv commented on GitHub (Feb 3, 2024): Running NPM on Unraid, ran into this problem on a fresh new install of the docker. Hosts were working fine on the old docker, but the same configuration under the custom location that previously worked immediately makes the proxy host go offline on the new one.
Author
Owner

@MiguelTVMS commented on GitHub (Feb 5, 2024):

The same problem is happening to me.

<!-- gh-comment-id:1926433815 --> @MiguelTVMS commented on GitHub (Feb 5, 2024): The same problem is happening to me.
Author
Owner

@AkshayRao27 commented on GitHub (Feb 13, 2024):

I had a similar issue where teslamate-local.mydomain.com was working but teslamate-local.mydomain.com/grafana was showing a blank page that said "Not Found". https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886 is how I fixed it.

<!-- gh-comment-id:1940998403 --> @AkshayRao27 commented on GitHub (Feb 13, 2024): I had a similar issue where teslamate-local.mydomain.com was working but teslamate-local.mydomain.com/grafana was showing a blank page that said "Not Found". https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886 is how I fixed it.
Author
Owner

@masterwishx commented on GitHub (Feb 17, 2024):

Same issue with lasted version using portainer in Oracle Cloud

<!-- gh-comment-id:1949889662 --> @masterwishx commented on GitHub (Feb 17, 2024): Same issue with lasted version using portainer in Oracle Cloud
Author
Owner

@github-actions[bot] commented on GitHub (Sep 4, 2024):

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

<!-- gh-comment-id:2327760214 --> @github-actions[bot] commented on GitHub (Sep 4, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@EDIflyer commented on GitHub (Nov 9, 2024):

custom locations still don't seem seem to work for me on v.2.12.1

<!-- gh-comment-id:2466469924 --> @EDIflyer commented on GitHub (Nov 9, 2024): custom locations still don't seem seem to work for me on v.2.12.1
Author
Owner

@gthvidsten commented on GitHub (Apr 29, 2025):

Same for v2.12.3 :(

<!-- gh-comment-id:2839217608 --> @gthvidsten commented on GitHub (Apr 29, 2025): Same for v2.12.3 :(
Author
Owner

@gthvidsten commented on GitHub (Apr 29, 2025):

Okay, I actually got it to work with v2.12.3.
It's really really sensitive about slashes.

Setting up a custom location with /mypath/ pointing to hostname myhost/ works. Note the trailing slashes everywhere.

So:
Having a trailing slash in location but not hostname: Doesn't work.
Having no trailing slashes in neither location nor hostname: Doesn't work.
Having trailing slashes for both location and hostname: Works!

Might be something that should be automatically added.

This link tipped me off:
I edited directly in the datamount/nginx/proxy_host/<hostnumber>.conf and experimented with the location directive. I then disabled/enabled another host to reload the configs, and it started working.
I could then recreating the behaviour in the UI.

<!-- gh-comment-id:2839710748 --> @gthvidsten commented on GitHub (Apr 29, 2025): Okay, I actually got it to work with v2.12.3. It's really really sensitive about slashes. Setting up a custom location with `/mypath/` pointing to hostname `myhost/` works. Note the trailing slashes everywhere. So: Having a trailing slash in location but not hostname: Doesn't work. Having no trailing slashes in neither location nor hostname: Doesn't work. Having trailing slashes for both location and hostname: Works! Might be something that should be automatically added. [This link](https://stackoverflow.com/a/58912470/4353606) tipped me off: I edited directly in the `datamount/nginx/proxy_host/<hostnumber>.conf` and experimented with the `location` directive. I then disabled/enabled another host to reload the configs, and it started working. I could then recreating the behaviour in the UI.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

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

<!-- gh-comment-id:3475452789 --> @github-actions[bot] commented on GitHub (Nov 1, 2025): 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#2335
No description provided.