我部署了个Django项目,输入ip之后,一直提示我502 Bad Gateway,是我配置文件的问题吗
etc/nginx/sites-enabled/fefault:
server {
listen 80;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name 47.101.157.128;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
include uwsgi_params;
uwsgi_pass 47.101.157.128:8000;
}
location /static{
alias /var/www/sscc2019/static/;
}
uwsgi.ini:
[uwsgi]
socket=47.101.157.128:8000
chdir=home/sscc/sscc2019
wsgi-file=sscc2019/wsgi.py
processes=4
threads=2
master=True
pidfile=uwsgi.pid
daemonize=uswgi.log
module=sscc2019.wsgi:application
vacuum=true
virtualenv=/home/ssccenv
#plugin=python3
这是我的配置文件,我用的是阿里云的服务器
楼主解决好了吗?我也是报这个错