Reputation: 942
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.
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
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
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