[GH-ISSUE #2098] How do I use path base routing #1513

Closed
opened 2026-02-26 07:31:22 +03:00 by kerem · 9 comments
Owner

Originally created by @uzairali001 on GitHub (Jun 7, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2098

I want to point example.mydomain:8080/portainer to http://portainer:8443
Image

Edit: It appears port is causing problem, not even this works portainer.mydomain:8080 to http://portainer:8443

Originally created by @uzairali001 on GitHub (Jun 7, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2098 I want to point `example.mydomain:8080/portainer` to `http://portainer:8443` [Image](https://drive.google.com/file/d/1HgBFGrrlXXo3cKLf8xQc48yMAs1wKxxm/view?usp=sharing) Edit: It appears port is causing problem, not even this works `portainer.mydomain:8080` to `http://portainer:8443`
kerem 2026-02-26 07:31:22 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@moritzbeck13 commented on GitHub (Jun 8, 2022):

Edit: It appears port is causing problem, not even this works portainer.mydomain:8080 to http://portainer:8443

Portainer is listening for http requests on port 9000 and for https request on port 9443.

I want to point example.mydomain:8080/portainer to http://portainer:8443 Image

Under Edit Proxy Host, you enter only your domain without any subpaths in the Domain Names field. In the same same menu, change to Custom Location. There you setup your subpath like you did in your picture.

<!-- gh-comment-id:1150183909 --> @moritzbeck13 commented on GitHub (Jun 8, 2022): > Edit: It appears port is causing problem, not even this works `portainer.mydomain:8080` to `http://portainer:8443` Portainer is listening for http requests on port 9000 and for https request on port 9443. > I want to point `example.mydomain:8080/portainer` to `http://portainer:8443` [Image](https://drive.google.com/file/d/1HgBFGrrlXXo3cKLf8xQc48yMAs1wKxxm/view?usp=sharing) Under `Edit Proxy Host`, you enter only your domain without any subpaths in the `Domain Names` field. In the same same menu, change to `Custom Location`. There you setup your subpath like you did in your picture.
Author
Owner

@buscseik commented on GitHub (Jun 29, 2022):

should :8080 work in the domain names field?

<!-- gh-comment-id:1170568589 --> @buscseik commented on GitHub (Jun 29, 2022): should <my domain name>:8080 work in the domain names field?
Author
Owner

@buscseik commented on GitHub (Jun 29, 2022):

I have managed it. I had to add following on advanced tab:
listen 8080 ssl http2;

<!-- gh-comment-id:1170572610 --> @buscseik commented on GitHub (Jun 29, 2022): I have managed it. I had to add following on advanced tab: listen 8080 ssl http2;
Author
Owner

@moritzbeck13 commented on GitHub (Jun 29, 2022):

I have managed it. I had to add following on advanced tab: listen 8080 ssl http2;

Note that 8080 is an alt port for http, not for https. You might get weird behavior with some services this way.

Otherwise this works, yes, but you are not really changing the port NGINX listens on, you just added another one.

<!-- gh-comment-id:1170577138 --> @moritzbeck13 commented on GitHub (Jun 29, 2022): > I have managed it. I had to add following on advanced tab: listen 8080 ssl http2; Note that 8080 is an alt port for http, not for https. You might get weird behavior with some services this way. Otherwise this works, yes, but you are not really changing the port NGINX listens on, you just added another one.
Author
Owner

@buscseik commented on GitHub (Jun 30, 2022):

Thanks for the clarification

<!-- gh-comment-id:1170767941 --> @buscseik commented on GitHub (Jun 30, 2022): Thanks for the clarification
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2024):

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

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

@AlphaCraft9658 commented on GitHub (Jun 8, 2024):

Edit: It appears port is causing problem, not even this works portainer.mydomain:8080 to http://portainer:8443

Portainer is listening for http requests on port 9000 and for https request on port 9443.

I want to point example.mydomain:8080/portainer to http://portainer:8443 Image

Under Edit Proxy Host, you enter only your domain without any subpaths in the Domain Names field. In the same same menu, change to Custom Location. There you setup your subpath like you did in your picture.

Sub-paths do not work inside the custom locations menu for some reason. When I access my domain with the sub-path, it does not work.

<!-- gh-comment-id:2156052135 --> @AlphaCraft9658 commented on GitHub (Jun 8, 2024): > > Edit: It appears port is causing problem, not even this works `portainer.mydomain:8080` to `http://portainer:8443` > > Portainer is listening for http requests on port 9000 and for https request on port 9443. > > > I want to point `example.mydomain:8080/portainer` to `http://portainer:8443` [Image](https://drive.google.com/file/d/1HgBFGrrlXXo3cKLf8xQc48yMAs1wKxxm/view?usp=sharing) > > Under `Edit Proxy Host`, you enter only your domain without any subpaths in the `Domain Names` field. In the same same menu, change to `Custom Location`. There you setup your subpath like you did in your picture. Sub-paths do not work inside the custom locations menu for some reason. When I access my domain with the sub-path, it does not work.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2025):

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

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

@github-actions[bot] commented on GitHub (Jan 27, 2026):

Issue was closed due to inactivity.

<!-- gh-comment-id:3802708149 --> @github-actions[bot] commented on GitHub (Jan 27, 2026): Issue was closed due to inactivity.
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#1513
No description provided.