[GH-ISSUE #3682] Support running nginx proxy manager under a subpath #2434

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

Originally created by @carylewis on GitHub (Apr 6, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3682

I need to run nginx proxy manager (npm) on a VM that only I can reach only via ports 80 and 443 due to very restrictive firewall rules in place

I would like to be able to run npm with a subpath, so that I can create a custom location for it, e.g. https://www.example.com/npm

I created a custom location to map /npm to localhost port 81, but when I try to access http://www.example.com/npm, the assets, etc. all use "/" instead of "/npm"

Is there a way to configure npm to use a default_url, so that all links that it emits will use the desired subpath?

Originally created by @carylewis on GitHub (Apr 6, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3682 I need to run nginx proxy manager (npm) on a VM that only I can reach only via ports 80 and 443 due to very restrictive firewall rules in place I would like to be able to run npm with a subpath, so that I can create a custom location for it, e.g. https://www.example.com/npm I created a custom location to map /npm to localhost port 81, but when I try to access http://www.example.com/npm, the assets, etc. all use "/" instead of "/npm" Is there a way to configure npm to use a default_url, so that all links that it emits will use the desired subpath?
Author
Owner

@Junt62 commented on GitHub (Apr 16, 2024):

please use custom location.

<!-- gh-comment-id:2058123090 --> @Junt62 commented on GitHub (Apr 16, 2024): please use custom location.
Author
Owner

@carylewis commented on GitHub (Apr 16, 2024):

That isn’t sufficient, as the links that npm generates, won’t have the right path.

<!-- gh-comment-id:2059408933 --> @carylewis commented on GitHub (Apr 16, 2024): That isn’t sufficient, as the links that npm generates, won’t have the right path.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2024):

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

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

@carylewis commented on GitHub (Oct 25, 2024):

Anyone also facing this issue?

<!-- gh-comment-id:2437995266 --> @carylewis commented on GitHub (Oct 25, 2024): Anyone also facing this issue?
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2025):

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

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

@carylewis commented on GitHub (Jul 4, 2025):

This issue still exists. It’s possible to workaround it with ssh tunnels but having a configuration to al the default url to include a path would be very useful.

<!-- gh-comment-id:3035929514 --> @carylewis commented on GitHub (Jul 4, 2025): This issue still exists. It’s possible to workaround it with ssh tunnels but having a configuration to al the default url to include a path would be very useful.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 13, 2026):

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

<!-- gh-comment-id:3894447709 --> @github-actions[bot] commented on GitHub (Feb 13, 2026): 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#2434
No description provided.