Nataraj
Nataraj

Reputation: 942

502 Bad Gateway ngnix for magento application

Many times I browse Magento web site, I am getting 502 bad gateway error at Nginx.! Before this error page is taking 89 seconds to load.

screenshot

Nginx Log error :-

recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 1.0.0.1, server: www.example.com, request:

My Nginx configuration below :-

fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;

Upvotes: 3

Views: 27403

Answers (2)

NotJay
NotJay

Reputation: 4076

I was experiencing 502 Bad Gateway errors as well and it turns out that my disk quota had been reached. I confirmed with my host and started removing old backups. My site instantly came back.

Upvotes: 1

Steve Robbins
Steve Robbins

Reputation: 13812

Are you using the config files provided by Magento?

What you have is an Nginx problem, not a Magento problem: https://stackoverflow.com/a/22792850/763468

Upvotes: 1

Related Questions