How I fixed Nginx 502 Bad Gateway error

by

Please shareShare on Facebook0Share on Google+1Tweet about this on Twitter7Share on LinkedIn0Share on Reddit0Digg thisShare on StumbleUpon0Share 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.