2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

502 Bad Gateway

Posted at

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;

意味はこちらを参照。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?