Nginx限制上传文件大小(client_max_body_size)
server {
listen 80;
server_name localhost;
client_max_body_size 10M; //位置必须在sever_name 后面
location /web {
alias D:/web; index main.html;
}
location /web/service {
proxy_pass http://192.168.1.188:8080/service;
}
location /web/service/upload {
proxy_pass http://192.168.1.188/upload;
}
}