60 likes | 86 Vues
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/
E N D
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.
Open NGINX Configuration File Open terminal and run the following command to open NGINX configuration file. $ sudo vi /etc/nginx/nginx.conf
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;
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
Thank You Visit for details https://ubiq.co/tech-blog/how-to-remove-x-powered-by-in-apache-php/