Python Django+Nginx+uwsgi 502 Bad Gateway
问题 Centos7,when I connect to my website, shows 502 Bad Gateway, I test my website with command uwsgi --ini systemctl start nginx And I cant figure out what's happened,please help me! here's nginx.conf upstream django { server 127.0.0.1:8000; } server { listen 80 default_server; listen [::]:80 default_server; server_name example.com; charset utf-8; include /etc/nginx/default.d/*.conf; location / { include uwsgi_params; uwsgi_pass django; } location /static/ { alias /usr/local/etc/dmp/static/; } }