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.