VOOZH about

URL: https://qiita.com/pman-taichi/items/70db05377fe4386a37d7

⇱ 502 Bad Gateway #WordPress - Qiita


👁 Image
2

Go to list of users who liked

0

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@pman-taichi

502 Bad Gateway

2
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

Go to list of users who liked

0
0

Go to list of comments

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

Go to list of users who liked

0