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

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日
  • 展开全部

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题