godaddy dns + aliyun主机 – django应用程序,uwsgi,nginx – 显示“502坏门户”
我有godaddy域mydomain.me我把它指向我在阿里云ECS的IP 在我的diango设置中我有: ALLOWED_HOSTS = [".mydomain.me","xxxx"] 在/ etc / nginx / sites-avaiable / Django我有 upstream django { server unix:/tmp/uwsgi.sock; } server { listen xxxx:80; server_name .mydomain.me; location /static/ { include uwsgi_params; alias /root/DjangoApps/mydomain_me/public; } location / { include uwsgi_params; uwsgi_pass django; } } **编辑:**为此,我制作了符号链接/ etc / nginx / sites-enabled / Django,并删除了默认的符号链接。 在uwsgi.ini我有 [uwsgi] chdir = /root/DjangoApps/mydomain_me […]