Nginx Helper 502 error


#1

I get a 502 error when I purge the cache through the nginx helper plugin


#2

usually 502 is thrown when nginx is not able to connect to phpfpm/gateway process. Is it happening reqpeatedly or happened only once? Is the server load is high?

Have a look into log for more information so that we can pin the exact issue. tail -f /var/log/nginx/sitename.error.log


#3

Hey @antopjoseph found this in my error log

*1007139 upstream sent too big header while reading response header from upstream


#4

edit /etc/nginx/conf.d/fastcgi.conf & increase following values.

fastcgi_buffers 16 16k; 
fastcgi_buffer_size 32k;

to

BIGGER values. :slight_smile:

current nginx configuration unable to handle the header send by the php-fpm.


#5

Hey, thanks for your reply. How do I calculate the correct values?


#6