タグ付けされた質問 「http-status-code-504」

8
Nginxリバースプロキシにより504ゲートウェイタイムアウトが発生する
Nginxをリバースプロキシとして使用しています。リバースプロキシは、要求を受け取り、proxy_passを実行して、ポート8001で実行されている上流サーバーから実際のWebアプリケーションを取得します。 mywebsite.comにアクセスするかwgetを実行すると、60秒後に504ゲートウェイタイムアウトが発生します...ただし、mywebsite.com:8001をロードすると、アプリケーションは期待どおりにロードされます。 そのため、何かが原因でNginxが上位サーバーと通信できません。 これはすべて、私のホスティング会社が私のものを実行していたマシンをリセットした後で始まりましたが、それ以前はまったく問題はありませんでした。 これが私のvhostsサーバーブロックです。 server { listen 80; server_name mywebsite.com; root /home/user/public_html/mywebsite.com/public; access_log /home/user/public_html/mywebsite.com/log/access.log upstreamlog; error_log /home/user/public_html/mywebsite.com/log/error.log; location / { proxy_pass http://xxx.xxx.xxx.xxx:8001; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } そして、私のNginxエラーログからの出力: 2014/06/27 13:10:58 [error] 31406#0: *1 upstream timed out (110: Connection timed out) while …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.