How To Configure NGINX To Avoid 502 Bad Gateway When Communicating With A Docker Container?

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 4

  • @MaximilianKohler
    @MaximilianKohler 11 месяцев назад

    In my case it was a firewall issue. I disabled the firewall and it worked.
    I got a clue by curling the docker IP, which properly output the html homepage.
    sudo ip addr show docker0
    then
    curl IP:port
    Before disabling firewall it would give a "curl: (56) Recv failure: Connection reset by peer".
    After, I get the HTML page output.

  • @LalitYadav-wf4eg
    @LalitYadav-wf4eg 2 месяца назад

    NGINX is server respond first time I tried to access the application by url but when click on any link then it give " 502 Bad Gateway"

  • @yendurimanish3798
    @yendurimanish3798 Год назад +1

    But hear in my case iam getting 503 errors 80 % and getting 200 20% what must be the issue

  • @Mabu-10
    @Mabu-10 Год назад

    It could be a buffer issue; if you see in /var/log/nginx/error.log that some amount is exceeded then you should increase the buffer size.