25
22

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.

Nginxで504 Gateway Time-out

Posted at

重いページ開こうとすると504エラーが出ていたときにしたこと。
nginxの設定で色々いじったので備忘録。

まず以下を変更してみたが変わらず。

  fastcgi_connect_timeout 600s;
  fastcgi_send_timeout 600s;
  fastcgi_read_timeout 600s;

次に以下。これでもダメ。

  keepalive_timeout 600;

最終的に以下を変更でうまくいきました!

  send_timeout 180;
  proxy_connect_timeout 600;
  proxy_read_timeout    600;
  proxy_send_timeout    600;

そもそもページ開くだけでタイムアウトになるほど重いのが根本的に良くないんですけどね...

25
22
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
25
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?