Phi*_*ite 2 django nginx gunicorn
我的问题是,每当我尝试查看不是根网页(又名 /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)
| 归档时间: |
|
| 查看次数: |
511 次 |
| 最近记录: |