+92-301-1000201 [email protected]
I installed the magento2 when I am trying to open some pages facing 502 nginx issue,

in nginx logs it is showing

upstream sent too big header while reading response header from upstream,

then solved this issue by modifying this file

vi /usr/local/etc/nginx/nginx.conf

add this line of codes insideĀ http{}

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;