nginx - client_max_body_size has no effect

前端 未结 13 1851
无人共我
无人共我 2020-11-28 01:13

nginx keeps saying client intended to send too large body. Googling and RTM pointed me to client_max_body_size. I set it to 200m in th

13条回答
  •  暖寄归人
    2020-11-28 01:43

    If you tried the above options and no success, also you're using IIS (iisnode) to host your node app, putting this code on web.config resolved the problem for me:

    Here is the reference: https://www.inflectra.com/support/knowledgebase/kb306.aspx

    Also, you can chagne the length allowed because now I think its 2GB. Modify it by your needs.

      
        
          
        
      
    

提交回复
热议问题