[GH-ISSUE #1266] Error 504, 502 and connection error #1021

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

Originally created by @PierreP94 on GitHub (Jul 28, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1266

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?
    • No
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

I have connection error ERR_NAME_NOT_RESOLVED, 502 Bad Gateway or 504 Gateway Time-out
following the container I'm redirecting to....
It's also working for one (bitwarden).

Nginx Proxy Manager Version

Latest

To Reproduce
Steps to reproduce the behavior:

  1. Redirect the port 80 and the 443 used by DSM to 82 and 444.
  2. Do the tutorial on official website.
  3. Connect to proxy_default all the containers.
  4. Make the redirection using http://name:port in NPM
  5. Then it's impossible to connect even if the http://Nas_local_IP:port is working written directly in the navigator (I have ofc tried to fill NPM like this and it's not working better :)

Expected behavior

Screenshots

Operating System

I'm trying to hide all my Synology NAS 918+ behind reverse proxy with nginx proxy manager.

Additional context

I have check that DNS is finding hosts with

docker exec proxy_app_1 host portainer
portainer has address 192.168.16.4

Thanks for help :/

Originally created by @PierreP94 on GitHub (Jul 28, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1266 **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? - No - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** I have connection error ERR_NAME_NOT_RESOLVED, 502 Bad Gateway or 504 Gateway Time-out following the container I'm redirecting to.... It's also working for one (bitwarden). **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> Latest **To Reproduce** Steps to reproduce the behavior: 1. Redirect the port 80 and the 443 used by DSM to 82 and 444. 2. Do the tutorial on official website. 3. Connect to proxy_default all the containers. 4. Make the redirection using http://name:port in NPM 5. Then it's impossible to connect even if the http://Nas_local_IP:port is working written directly in the navigator (I have ofc tried to fill NPM like this and it's not working better :) **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> I'm trying to hide all my Synology NAS 918+ behind reverse proxy with nginx proxy manager. **Additional context** <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. --> I have check that DNS is finding hosts with ``` docker exec proxy_app_1 host portainer portainer has address 192.168.16.4 ``` Thanks for help :/
kerem 2026-02-26 06:35:27 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@PierreP94 commented on GitHub (Jul 28, 2021):

Well that was because I haven't used internal port of docker and for the domain i had to redirect to www.domaine_name.com:entrance_port

So it was impossible to use local ip adress. Don't know why

<!-- gh-comment-id:888528378 --> @PierreP94 commented on GitHub (Jul 28, 2021): Well that was because I haven't used internal port of docker and for the domain i had to redirect to www.domaine_name.com:entrance_port So it was impossible to use local ip adress. Don't know why
Author
Owner

@PierreP94 commented on GitHub (Jul 30, 2021):

Well it's working more or less but I believe that redirecting to www.domaine_name.com:entrance_port is a bit lame :/

<!-- gh-comment-id:889745688 --> @PierreP94 commented on GitHub (Jul 30, 2021): Well it's working more or less but I believe that redirecting to www.domaine_name.com:entrance_port is a bit lame :/
Author
Owner

@github-actions[bot] commented on GitHub (Mar 7, 2024):

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

<!-- gh-comment-id:1982186835 --> @github-actions[bot] commented on GitHub (Mar 7, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 20, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2816950750 --> @github-actions[bot] commented on GitHub (Apr 20, 2025): Issue was closed due to inactivity.
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#1021
No description provided.