很简单,加个server
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 { } }