1.本人在阿里云上部署了本地的一个django项目,按照网上的教程部署后,无法通过ip+端口访问
2.安全组规则已经配置
3.nginx配置如下:
server {
listen 80;
server_name 47.96.109.254;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8001;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root html;
#}
location /static {
alias /home/testfk/nginx/static/; #项目静态路径设置
}
uwsgi配置如下:
[uwsgi]
socket = 127.0.0.1:8001
#chmod-socket = 666
chdir = /home/testfk/
wsgi-file = /home/testfk/testfk/wsgi.py
#touch-reload = /home/testfk
#py-auto-reload = 1
processes = 4
threads = 2
#enable-threads = True
master = true
daemonize = /home/testfk/run.log
#disable-logging = true
pidfile=/home/testfk/uwsgi.pid
用ip+端口访问报错
求大神解答