[GH-ISSUE #1379] Custom location not forwarding to portainer #1084

Closed
opened 2026-02-26 06:35:42 +03:00 by kerem · 0 comments
Owner

Originally created by @ProductiveAsparagus56 on GitHub (Sep 5, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1379

I would like to have my portainer installation under a subfolder,
i have filled in all the fields correctly but it still gives me the "404 page not found" page from portainer.
I have read that portainer does not need a root domain so you can specify any subfolder location you want. 

While writing up this issue, i have fixed it myself. I still thought it would be worth posting though since this can be added to the wiki or benefit anyone with the same issue. On to the solution;

While specifying your custom location, click the cogwheel to reveal advanced nginx configuration. Then add this line;
rewrite /your_subfolder(.*) $1 break;
where "your_subfolder" is the same as your location field.

That fixed it for me, hope this helps anyone else.

Originally created by @ProductiveAsparagus56 on GitHub (Sep 5, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1379 ``` I would like to have my portainer installation under a subfolder, i have filled in all the fields correctly but it still gives me the "404 page not found" page from portainer. I have read that portainer does not need a root domain so you can specify any subfolder location you want. ``` While writing up this issue, i have fixed it myself. I still thought it would be worth posting though since this can be added to the wiki or benefit anyone with the same issue. On to the solution; While specifying your custom location, click the cogwheel to reveal advanced nginx configuration. Then add this line; `rewrite /your_subfolder(.*) $1 break;` where "your_subfolder" is the same as your location field. That fixed it for me, hope this helps anyone else.
kerem closed this issue 2026-02-26 06:35:42 +03:00
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#1084
No description provided.