1 / 6

How to Fix NGINX 413 Request Too Large Error

Sometimes NGINX gives 413 Request too large error. Here is how to fix NGINX 413 request too large error. #nginx #debug #error <br><br>Visit https://ubiq.co/tech-blog/how-to-fix-nginx-413-request-too-large-error/

Download Presentation

How to Fix NGINX 413 Request Too Large Error

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Fix NGINX 413 Request Too Large Error

  2. What is 413 : Request Too Large Error? Why do you get it? By default, NGINX supports uploads of up to 2Mb. This setting is controlled by client_max_body_size parameter. If the uploaded file exceeds this size, then you get “Request Entity Too Large” error response.

  3. Open NGINX Configuration File Open terminal and run the following command to open NGINX configuration file. $ sudo vi /etc/nginx/nginx.conf

  4. Increase Request Size Limit Add modify the client_max_body_size parameter in your server configuration file. Below we have increased the client_max_body_size directive to 10Mb size. client_max_body_size 10M;

  5. Restart NGINX Server Run the following command to check syntax of your updated config file. $ sudo nginx -t If there are no errors, run the following command to restart NGINX server. $ sudo service nginx reload #debian/ubuntu $ systemctl restart nginx #redhat/centos

  6. Thank You Visit for details https://ubiq.co/tech-blog/how-to-remove-x-powered-by-in-apache-php/

More Related