ngnix-内网能用,外网不能用

今天做了个东西

内网能上传文件,外网不行

经过排查,怀疑是ngnix的问题,

413 Request Entity Too Large

于是设置文件大小,然后重启nginx后ok

Syntax:

  client_max_body_size size;
Default:
client_max_body_size 1m;
Context: httpserverlocation

猜你喜欢

转载自www.cnblogs.com/mathprice/p/9158870.html