0
Djangoアプリケーションに問題があります。私はデプロイメントサーバーをセットアップしようとしていますが、タイムアウトエラーが発生しています。私はuWSGI実行しています:uWSGIを使用したnginxとDjangoアプリのタイムアウトエラー
uwsgi --http :8000 --chdir /home/rrcms/myproject/ --wsgi-file /home/rrcms/myproject/quickstart/wsgi.py
を、私はwww.mydomain.com:8000に行くとき、私は、サイトが稼働して見ることができますが、私はそれがuWSGIと通信するためにポート80でnginxのを設定しようとすると、私は504を取得します
upstream django {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name www.mydomain.com;
charset utf-8;
# max upload size
client_max_body_size 75M;
location /static {
alias /home/rrcms/myproject/static;
}
location/{
uwsgi_pass django;
include /home/rrcms/myproject/uwsgi_params;
}
}
私が起こっかもしれないもののアイデアが不足しています:ゲートウェイタイムアウトは、ここに私のnginxのサイトで入手可能なファイルです。
私はnginxエラーログをチェックしました。これは、上流に接続している間に失敗しました(111:Connection refused) –