nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

502 Bad Gateway

Open Yangsiny opened this issue 2 years ago • 4 comments

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

Yangsiny avatar May 03 '22 12:05 Yangsiny

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

tobih7 avatar May 08 '22 11:05 tobih7

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

bankmrc054 avatar May 30 '22 08:05 bankmrc054

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

It works for me

tiborasandor avatar Jun 21 '22 20:06 tiborasandor

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?

eaglepie avatar Dec 18 '22 12:12 eaglepie

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

image

miticc06 avatar Mar 28 '23 03:03 miticc06

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

jneidel avatar Dec 27 '23 08:12 jneidel