413 Request Entity Too Large 错误处理

今天发现Mybb 论坛上传附件时出现这个错误:

413 Request Entity Too Large

在控制台修改限制没有用。这个限制是nginx 的配置导致的。

解决方法 :

http {

        ##
        # Basic Settings
        ##

        client_max_body_size 8m;  #加入这一句
检查有没有错误 :

$ sudo nginx  -t -c nginx.conf 

平滑重启:

$ sudo nginx  -s reload



你可能感兴趣的:(nginx,error,413)