How I fixed Nginx 502 Bad Gateway error


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

Question: How to fix this  Error : nginx error: 502 Bad Gateway  /

Answer :

Your  problem will be fixed by adding two lines to Nginx configuration file /etc/nginx/nginx.conf   

http {
    fastcgi_buffers 8 16k;
    fastcgi_buffer_size 32k;

Restart   Nginx

is done.