How I fixed Nginx 502 Bad Gateway error

by
Share this Article: Facebook8Google+1Twitter7LinkedIn0Reddit0StumbleUpon0

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.

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook8Google+0Twitter7LinkedIn0Reddit0StumbleUpon0