nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

How do I use path base routing

Open uzairali001 opened this issue 2 years ago • 7 comments

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

uzairali001 avatar Jun 07 '22 06:06 uzairali001

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.

moritzbeck13 avatar Jun 08 '22 17:06 moritzbeck13

should :8080 work in the domain names field?

buscseik avatar Jun 29 '22 22:06 buscseik

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

buscseik avatar Jun 29 '22 22:06 buscseik

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.

moritzbeck13 avatar Jun 29 '22 23:06 moritzbeck13

Thanks for the clarification

buscseik avatar Jun 30 '22 05:06 buscseik

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

github-actions[bot] avatar Feb 15 '24 01:02 github-actions[bot]