More than 5 years have passed since last update.
nginxをリバースプロキシとしてapache上でWordPressを動かしていたら、502 Bad Gatewayがたまに出るように。
nginxのログを見ると下記の様な文言がでてます。
1454 upstream sent too big header while reading response header from upstream
どうやら、apacheから返ってくるレスポンスのヘッダ(httpヘッダ?)がデカ過ぎるようです。
proxyのバッファのサイズを超えているってことみたいなので下記設定をnginx.confのhttpディレクティブに下記を追加もしくは変更。
proxy_buffer_size 64k;
proxy_buffers 32 64k;
意味はこちらを参照。
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
