Nginx Error 413

前端 未结 3 1195
迷失自我
迷失自我 2021-02-04 06:11

When I try to upload a file to my site, I\'m getting the Nginx \"413 Request Entity Too Large\" error, however in my nginx.conf file I\'ve already explicitly stated the max size

3条回答
  •  春和景丽
    2021-02-04 07:11

    I also add that you could define it in the *.php location handler

    location ~ ^/([a-z,0-9]+)\.php$ {
    

    Being the "lower" one in the cascading level, it would be an easy way to see if the problem comes from your nginx config or modules.

    It sure doesn't come from PHP because the 413 error "body too large" is really a NGinx error.

提交回复
热议问题