NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.38k stars 2.71k forks source link

bug about custom locations for subdirectory of hosts #3534

Open respota opened 9 months ago

respota commented 9 months ago

Checklist

Describe the bug

I installed npm in docker on the local device (hereinafter referred to as the host, which local ip is 192.168.0.2 ). I want to reverse proxy services on different ports of the host in different paths under the same domain name, for example: My domain name is main.exmaple.com, and the agency relationship I want to achieve is

  1. main.exmaple.com/login proxy 192.168.0.2:88;

  2. main.exmaple.com/down proxy 192.168.0.2:8080;

  3. main.exmaple.com/upload proxy 192.168.0.2:8088;

I found that the custom locations are set to the following correspondence:

  1. /login -> 192.168.0.2/ 88;

  2. /down -> 192.168.0.2/ 8080;

  3. /upload -> 192.168.0.2/ 8088;

It can be displayed online normally, but when I access the subpath of the domain name, a blank page is loaded and I cannot access it normally. However, it can work normally when I proxy a non-host IP service according to the above rules. How can I fix it? Thanks.

Nginx Proxy Manager Version 2.10.4 2.11.1 2.11.2

To Reproduce Refer to [Describe the bug] above.

Expected behavior

can be work correctly.

Screenshots

image

Operating System

armv8 linux (docker in openwrtOS)

Additional context

docker version: 3.8 broswer: edge, chrome etc.

AkshayRao27 commented 9 months ago

I had a similar issue where teslamate-local.mydomain.com was working but teslamate-local.mydomain.com/grafana was showing a blank page that said "Not Found". https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3512#issuecomment-1940868886 is what worked for me.

github-actions[bot] commented 2 months ago

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