// 未分类
给nginx添加静态文件配置
发布 2018-09-30 · 永久链接
no excerpt about this article
很简单,加个server
``` bash
server {
client_max_body_size 4G;
listen 0.0.0.0:8888; ## listen for ipv4; this line is default and implied
server_name localhost;
root /static/path/;
location /static/mapping/path {
}
}
```