mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1334] Bad Gateway Error #1063
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1063
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Seralius on GitHub (Aug 19, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1334
Used Docker Stack
The Used Docker-Stack was the Docker-Compose from the Website at https://nginxproxymanager.com/guide/#quick-setup
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I'm getting an Bad Gateway Error when trying to setup an Proxy-Host for External Websites (specifically when using HTTPS)
Nginx Proxy Manager Version
v2.2.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I can successfully reverse-proxy the given Website
Screenshots
Here is an Example where i tried to setup an Proxy-Host for https://nginxproxymanager.com:443:




To test if the Container can access the Website, i did an Curl of the Exact URL inside of the Container, which is successful:
Operating System
Debian Server
Additional Information
@jc21 commented on GitHub (Aug 19, 2021):
This is an interesting problem. I haven't really tried forwarding to hosts outside of my own network, until now.
I inspected the nginx logs for the proxy host, and it looks like this is a Nginx problem not one to do with the configuration of this host.
so it appears that nginx is trying to access the host on the ipv6 address directly instead of a hostname? 🤷
The proxy host config is essentially this:
and I don't see any problems with the configuration.
I found this problem related to the error, and tried to apply the solution but has not worked for me.
@jc21 commented on GitHub (Aug 19, 2021):
I just tried a different upstream host that does not have an ipv6 address and I don't get any errors in the logs, but the upstream server is returning 501 not implemented so it's probably the upstream server not happy with the proxied request.
@github-actions[bot] commented on GitHub (Mar 6, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@harryyang2024 commented on GitHub (May 24, 2024):
I got same error : [ipv6 address]:443 failed (99: Cannot assign requested address), when the target host that only have a public ipv6 address.
So I wonder if the container don't support ipv6.
After I add option network_mode: host in docker compose file, I didn't get the error.
Hope it will be helpful!
@github-actions[bot] commented on GitHub (Feb 7, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Feb 22, 2026):
Issue was closed due to inactivity.