NginxProxyManager / nginx-proxy-manager

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

502 Bad Gateway #2036

Open Yangsiny opened 2 years ago

Yangsiny commented 2 years ago

Hello, i am running npm on proxmox lxc with docker image and its so great. This npm connect to apache2 server eith remoteip module and it show ip address perfectly. Howhever i've a trouble with and error code that it show me randomly like this:

image

When reviewing the configuration log of that domain in ~/nginx-proxy-manager/data/logs/...error.log it shows me the following when that event occurs:

[error] 7331#7331: *549163 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, server: example.com, request: "GET /url/ HTTP/2.0", upstream: ...

¿could you help me? Thanks

tobih7 commented 2 years ago

This seems like an issue with your Apache2 server rather than NPM.

bankmrc054 commented 2 years ago

host address / IP = Docker gateway follow with app: port

tiborasandor commented 2 years ago

host address / IP = Docker gateway follow with app: port

It works for me

eaglepie commented 1 year ago

host address / IP = Docker gateway follow with app: port

It works for me

How to use it,Could you tell me how to do it in detail?

miticc06 commented 1 year ago

i realized that you have to use the ip of the container. For example 172.19.0.2:81

image

jneidel commented 8 months ago

For reference: I had this issue on Unraid and the fix was to enable Host access to custom networks in Settings > Docker > Advanced View.

github-actions[bot] commented 1 month ago

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