upstream sent too big header while reading response header from upstream

逆流の鱼, 16 九月, 2020

网站一些链接点击后出现502错误,查看nginx error日志,里面有一句:

upstream sent too big header while reading response header from upstream

太大的头?drupal返回太大的头给nginx了,于是在nginx里添加以下配置。

nginx.conf

server {
...
    fastcgi_buffers  16 16k;
    fastcgi_buffer_size  32k;
}

重启nginx服务后恢复正常。

评论