[GH-ISSUE #2091] Trying to point to npm itself to a sub domain #1506

Closed
opened 2026-02-26 07:31:20 +03:00 by kerem · 1 comment
Owner

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

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes / No

Describe the bug

Installed npm using docker. Used compose to run it. Opened port 81 so I could configure it via ip:81. Now I have an admin account, I want to put it under my domain: npm.example.com Added wild card with the token in cloudflare. Problem is I cannot appoint the correct proxy host for this to work.

Nginx Proxy Manager Version

v2.9.18

To Reproduce
Steps to reproduce the behavior:

NETWORK ID     NAME          DRIVER    SCOPE
a2369a124003   bridge        bridge    local
2112b23fd832   host          host      local
aa8b1f598b48   none          null      local
3a2a6f6aad9c   npm_default   bridge    local

Docker network list. Tried npm_default in the forward hostname, 127.0.0.1, localhost.
Expected behavior
Go to npm.example.com and see the npm login panel. I am met with error 520 instead.

Screenshots

Did include some.

Operating System

Ubuntu 20.04

Compose File:

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt 

Cloudflare DNS settings:

Originally created by @denppa on GitHub (Jun 3, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2091 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes / No **Describe the bug** <!-- A clear and concise description of what the bug is. --> Installed npm using docker. Used compose to run it. Opened port 81 so I could configure it via ip:81. Now I have an admin account, I want to put it under my domain: npm.example.com Added wild card with the token in cloudflare. ![](https://i.imgur.com/KQ0kLDL.png) Problem is I cannot appoint the correct proxy host for this to work. **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> v2.9.18 **To Reproduce** Steps to reproduce the behavior: ![](https://i.imgur.com/5q8qMnU.png) ``` NETWORK ID NAME DRIVER SCOPE a2369a124003 bridge bridge local 2112b23fd832 host host local aa8b1f598b48 none null local 3a2a6f6aad9c npm_default bridge local ``` Docker network list. Tried npm_default in the forward hostname, 127.0.0.1, localhost. **Expected behavior** Go to npm.example.com and see the npm login panel. I am met with error 520 instead. **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> Did include some. **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> Ubuntu 20.04 Compose File: ``` version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt ``` Cloudflare DNS settings: ![](https://i.imgur.com/t0G9SNZ.png)
kerem 2026-02-26 07:31:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@denppa commented on GitHub (Jun 3, 2022):

Cloudflare IP address missed a number.

<!-- gh-comment-id:1146309473 --> @denppa commented on GitHub (Jun 3, 2022): Cloudflare IP address missed a number.
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#1506
No description provided.