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/;
}
}
}
部署目录
项目访问地址 http://47.95.151.110:8888/