限制上传文件大小为500M
1、在nginx的http段添加如下限制
client_max_body_size 500m;
2、在相应的location添加如下限制
client_max_body_size 500m;
注意:location中的定义优先级高于http段
未经允许不得转载:SRE空间 » nginx控制上传文件的大小
限制上传文件大小为500M
1、在nginx的http段添加如下限制
client_max_body_size 500m;
2、在相应的location添加如下限制
client_max_body_size 500m;
注意:location中的定义优先级高于http段
未经允许不得转载:SRE空间 » nginx控制上传文件的大小