小编Phi*_*ite的帖子

django、nginx、gunicorn 404 在除根之外的任何其他页面上

我的问题是,每当我尝试查看不是根网页(又名 /user/ nginx)的网页时,都会返回 404 错误并且错误日志指出“/usr/share/nginx/html/user/login/index.html”没有找到。

当前 nginx 配置

server {
    listen 80;
    server_name ip_address;

    location = /static {
         root /opt/scrumban/kanbanboard/;
         autoindex off;
     }

    location = / {
        include proxy_params;
        proxy_pass http://unix:/opt/scrumban/kanbanboard/kanban.sock;
    }
}
Run Code Online (Sandbox Code Playgroud)

django nginx gunicorn

2
推荐指数
1
解决办法
511
查看次数

标签 统计

django ×1

gunicorn ×1

nginx ×1