[GH-ISSUE #453] how to do base URL's #383

Closed
opened 2026-02-26 06:32:38 +03:00 by kerem · 9 comments
Owner

Originally created by @docfactory37 on GitHub (Jun 8, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/453

Hi All,

First love Nginx proxy manager.

i just want to ask how to do base URL's

so if i have my gose to one site and if i do /media forward to my media server or if i have /cloud forwards to mt nextcloud server is this possable or not?

Regards

Originally created by @docfactory37 on GitHub (Jun 8, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/453 Hi All, First love Nginx proxy manager. i just want to ask how to do base URL's so if i have my <url> gose to one site and if i do <url>/media forward to my media server or if i have <url>/cloud forwards to mt nextcloud server is this possable or not? Regards
kerem 2026-02-26 06:32:38 +03:00
Author
Owner

@collunz commented on GitHub (Jun 10, 2020):

I believe this should be possible, yes.

In "Edit Proxy Host" under "Custom locations" add a location, and choose where it should be forwarded to.

Do this for both /paths and you should be set.

Hope this helps.

<!-- gh-comment-id:641849378 --> @collunz commented on GitHub (Jun 10, 2020): I believe this should be possible, yes. In "Edit Proxy Host" under "Custom locations" add a location, and choose where it should be forwarded to. Do this for both /paths and you should be set. Hope this helps.
Author
Owner

@docfactory37 commented on GitHub (Jun 10, 2020):

I believe this should be possible, yes.

In "Edit Proxy Host" under "Custom locations" add a location, and choose where it should be forwarded to.

Do this for both /paths and you should be set.

Hope this helps.

i have done this as below
image

and i get this error

image

when i go to example.com.au/media

<!-- gh-comment-id:641942110 --> @docfactory37 commented on GitHub (Jun 10, 2020): > I believe this should be possible, yes. > > In "Edit Proxy Host" under "Custom locations" add a location, and choose where it should be forwarded to. > > Do this for both /paths and you should be set. > > Hope this helps. i have done this as below ![image](https://user-images.githubusercontent.com/20963053/84262864-bd0acb00-ab61-11ea-80ca-23e2b2427887.png) and i get this error ![image](https://user-images.githubusercontent.com/20963053/84262893-cac05080-ab61-11ea-8474-55761695116e.png) when i go to example.com.au/media
Author
Owner

@haisongliang commented on GitHub (Jun 10, 2020):

It seems that domain/path is forward to 1.1.1.1/path, not 1.1.1.1

<!-- gh-comment-id:642059928 --> @haisongliang commented on GitHub (Jun 10, 2020): It seems that domain/path is forward to 1.1.1.1/path, not 1.1.1.1
Author
Owner

@docfactory37 commented on GitHub (Jun 12, 2020):

So it looks like it's not possible at this stage, would be great if it was, hope this will be fix / implemented.

<!-- gh-comment-id:643282386 --> @docfactory37 commented on GitHub (Jun 12, 2020): So it looks like it's not possible at this stage, would be great if it was, hope this will be fix / implemented.
Author
Owner

@ggl-wolfy commented on GitHub (Jun 14, 2020):

This seems to work for me: instead of your.ip.address in the forward hostname field, put your.ip.address/ instead (with the trailing slash).

Also enter set $port 8096; (with your own port number) in the custom nginx configuration (click the gear icon).

<!-- gh-comment-id:643730127 --> @ggl-wolfy commented on GitHub (Jun 14, 2020): This seems to work for me: instead of `your.ip.address` in the forward hostname field, put `your.ip.address/` instead (with the trailing slash). Also enter `set $port 8096;` (with your own port number) in the custom nginx configuration (click the gear icon).
Author
Owner

@docfactory37 commented on GitHub (Jun 14, 2020):

This seems to work for me: instead of your.ip.address in the forward hostname field, put your.ip.address/ instead (with the trailing slash).

Also enter set $port 8096; (with your own port number) in the custom nginx configuration (click the gear icon).

Thank you for your help i will try this, and let you know how I go

<!-- gh-comment-id:643760486 --> @docfactory37 commented on GitHub (Jun 14, 2020): > This seems to work for me: instead of `your.ip.address` in the forward hostname field, put `your.ip.address/` instead (with the trailing slash). > > Also enter `set $port 8096;` (with your own port number) in the custom nginx configuration (click the gear icon). Thank you for your help i will try this, and let you know how I go
Author
Owner

@docfactory37 commented on GitHub (Jun 22, 2020):

still dose not work 100% will there be a proper solution develop and implamented in future?

<!-- gh-comment-id:647328901 --> @docfactory37 commented on GitHub (Jun 22, 2020): still dose not work 100% will there be a proper solution develop and implamented in future?
Author
Owner

@chaptergy commented on GitHub (May 12, 2021):

This is a general thing with nginx, not with NPM (see e.g. this Stackoverflow. Generally you could replicate most nginx configs using the advanced fields, so there is nothing inherently wrong in NPM.

<!-- gh-comment-id:839780766 --> @chaptergy commented on GitHub (May 12, 2021): This is a general thing with nginx, not with NPM (see e.g. [this Stackoverflow](https://serverfault.com/questions/562756/how-to-remove-the-path-with-an-nginx-proxy-pass/562850#562850). Generally you could replicate most nginx configs using the advanced fields, so there is nothing inherently wrong in NPM.
Author
Owner

@luixal commented on GitHub (Jun 16, 2022):

Hi,

Just got here looking for this exact feature. Doing what @ggl-wolfy suggests hasn't worked for me.

It would be nice to have this kind of configuration as it ables you to use dynamic DNS services (DynDNS, tplinkdns, no-ip, etc...). Those services (as far as I know) do not allow you to use another subdomain level so you can only reach your home server with one domain.

Thanks!

@chaptergy I don't get your comment. No one is pointing out anything about NPM as wrong, just asking for a feature that would be nice to have :)

Thanks!

<!-- gh-comment-id:1157514167 --> @luixal commented on GitHub (Jun 16, 2022): Hi, Just got here looking for this exact feature. Doing what @ggl-wolfy suggests hasn't worked for me. It would be nice to have this kind of configuration as it ables you to use dynamic DNS services (DynDNS, tplinkdns, no-ip, etc...). Those services (as far as I know) do not allow you to use another subdomain level so you can only reach your home server with one domain. Thanks! @chaptergy I don't get your comment. No one is pointing out anything about NPM as wrong, just asking for a feature that would be nice to have :) Thanks!
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#383
No description provided.