辉煌仪奇 2022-05-23 16:23 采纳率: 46.6%
浏览 38
已结题

nginx 代理django 样式消失

nginx 代理django样式错乱,我改如何修改配置配置
nginx配置

events {
    worker_connections  1024;
}
http{
upstream kzjzserver {
server 127.0.0.1:8008; # for a web port socket (we'll use this first)
}
# configuration of the server
server {
# the port your site will be served on
listen      8888;
# the domain name it will serve for
server_name  1; # substitute your machine's IP address or FQDN
charset     utf-8;

# max upload size
client_max_body_size 75M;   # adjust to taste


# Finally, send all non-media requests to the Django server.
location / {
    uwsgi_pass  kzjzserver;
    include     /www/jzjzserver/uwsgi_params;
}
location /static/ {
    alias /www/jzjzserver/static/;
}
}

}

部署目录

img

项目访问地址 http://47.95.151.110:8888/

  • 写回答

5条回答 默认 最新

报告相同问题?

问题事件

  • 系统已结题 5月31日
  • 修改了问题 5月23日
  • 修改了问题 5月23日
  • 修改了问题 5月23日
  • 展开全部