{"id":2454,"date":"2020-11-27T05:24:51","date_gmt":"2020-11-27T05:24:51","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=2454"},"modified":"2025-11-13T04:33:29","modified_gmt":"2025-11-13T04:33:29","slug":"how-to-fix-nginx-413-request-too-large-error","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/","title":{"rendered":"How to Fix NGINX 413 Request Too Large Error"},"content":{"rendered":"\n<p>If you try to upload a large file to NGINX server, it may give &#8220;413 : Request Entity Too Large&#8221; error. Although it is good that server blocks large uploads from overloading itself, this can also cause problems if the file upload limit is set to a small value. Nevertheless, this error should not be shown on front end, otherwise it will spoil their user experience. In this article, we will learn what 413 error code is and how to fix NGINX 413 request too large error for your website.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#What_is_413_Request_Too_Large_Error_Why_do_you_get_it\" >What is  413 : Request Too Large Error? Why do you get it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#413_Request_Too_Large_vs_414_URI_Entity_Too_Large\" >413 Request Too Large vs 414 URI Entity Too Large<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#How_to_Fix_NGINX_413_Request_Too_Large_Error\" >How to Fix NGINX 413 Request Too Large Error<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#1_Backup_NGINX_Configuration_File\" >1. Backup NGINX Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#2_Open_NGINX_Configuration_File\" >2. Open NGINX Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#3_Increase_Request_Size_Limit\" >3. Increase Request Size Limit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#4_Restart_NGINX_Server\" >4. Restart NGINX Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#5_Check_File_Permissions\" >5. Check File Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#6_PHP_Configuration_Optional\" >6. PHP Configuration (Optional)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_413_Request_Too_Large_Error_Why_do_you_get_it\"><\/span>What is  413 : Request Too Large Error? Why do you get it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By default, 413: Request too large error means that the size of the request sent by user to NGINX server is beyond the permissible limit set in NGINX server configuration. This occurs mainly when a user tries to upload a large file or enter a large amount of data in the site&#8217;s database. In such cases, NGINX will immediately close server connection and return response 413: Request too large. By default, NGINX supports uploads of up to 2Mb. This setting is controlled by <em>client_max_body_size<\/em> parameter. If the uploaded file exceeds this size, then you get &#8220;Request Entity Too Large&#8221; error response.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"413_Request_Too_Large_vs_414_URI_Entity_Too_Large\"><\/span>413 Request Too Large vs 414 URI Entity Too Large<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Often system administrators and software developers get confused between response codes 413 and 414 returned by NGINX. This is because they display similar error messages. Error code 413 says &#8216;Request too Large&#8217; whereas error code 414 says &#8216;URI Entity too large&#8217;. But there is a major difference between them. Status code 413 means the content of your request, that is, the body of request, is too large. Status code 414 means that the requested URL itself is too large. It has nothing to do with the content of the request body. The reasons for getting 414 URI Entity too large are completely different and need different solutions. If you are getting response code 414, then check out <a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-414-request-uri-too-large-in-apache\/\">how to fix 414 URI Entity too large<\/a> problem. It is important to remember this difference while dealing with them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Fix_NGINX_413_Request_Too_Large_Error\"><\/span>How to Fix NGINX 413 Request Too Large Error<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to fix NGINX 413 Request Too Large Error. We will basically modify the <em>client_max_body_size<\/em> server parameter to handle a larger request size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Backup_NGINX_Configuration_File\"><\/span>1. Backup NGINX Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You need to edit client_max_body_size setting in NGINX configuration file. For this purpose, take its backup before you open it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo cp \/etc\/nginx\/nginx.conf \/etc\/nginx\/backup-nginx.conf<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Open_NGINX_Configuration_File\"><\/span>2. Open NGINX Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open terminal and run the following command to open NGINX configuration file in text editor.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/nginx\/nginx.conf<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Increase_Request_Size_Limit\"><\/span>3. Increase Request Size Limit<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Add or modify the <em><a href=\"https:\/\/nginx.org\/en\/docs\/http\/ngx_http_core_module.html#client_max_body_size\" target=\"_blank\" rel=\"noreferrer noopener\">client_max_body_size<\/a><\/em> parameter in your server configuration file. It decides the maximum body size of client request, as indicated by Content-Length request header. Below we have i<a href=\"https:\/\/ubiq.co\/tech-blog\/increase-file-upload-size-nginx\/\">ncreased the client_max_body_size<\/a> directive to 10Mb size.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>client_max_body_size 10M;<\/code><\/pre>\n\n\n\n<p>You can change it as per your requirement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Restart_NGINX_Server\"><\/span>4. Restart NGINX Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Run the following command to check syntax of your updated config file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo nginx -t<\/pre>\n\n\n\n<p>If there are no errors, run the following command to restart NGINX server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service nginx reload #debian\/ubuntu\n$ systemctl restart nginx #redhat\/centos<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Check_File_Permissions\"><\/span>5. Check File Permissions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Rarely but sometimes you may get this error even after you update client_max_body_size. This may be because NGINX server does not have adequate permissions to access the upload folder. If you see &#8216;denying uploading as opening&#8230;&#8217; message in error.log file of NGINX, then it means there is a permission problem. Run the following command to allow NGINX to access uploads directory. Update the path below as per your requirement.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo chmown www-data:www-data \/var\/www\/html\/uploads<\/pre>\n\n\n\n<p>If you are using a separate caching server such as lighttpd, then you need to allow its user lighttpd to access this directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo chown lighttpd:lighttpd \/var\/www\/html\/uploads<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_PHP_Configuration_Optional\"><\/span>6. PHP Configuration (Optional)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you are using PHP with NGINX, and still getting this problem, open php.ini file to check if there is a file upload limit. Run &#8216;php &#8211;ini&#8217; command on terminal\/command prompt to get location of php.ini.<\/p>\n\n\n\n<p><strong>Please note<\/strong>: If you need to update the php.ini file, take its backup before you make any changes to it.<\/p>\n\n\n\n<p>Then update the following server settings in this file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">;This sets the maximum amount of memory in bytes that a script is allowed to allocate<br>memory_limit = 32M<br><br>;The maximum size of an uploaded file.<br>upload_max_filesize = 10M<br><br>;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize<br>post_max_size = 12M<\/pre>\n\n\n\n<p>Save and close the file. Until the error is fixed, it is also advisable to display <a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-nginx\/\">custom error page<\/a> in case of errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Hopefully, this article will help you fix &#8216;Request too Large&#8217; Error in NGINX. If your website allows users to upload images and videos then it is advisable to set client_max_body_size directive to a large value, to avoid this error. Otherwise, your users will not be able to upload files as per their wish. However, you may want to do some kind of validation on file size to avoid malicious attackers and bots. You can use it to apply restrictions from the back end code (PHP, Python, etc.) and display intuitive user messages on web browser, instead of displaying server error page.<\/p>\n\n\n\n<p> <a href=\"https:\/\/ubiq.co\/\">Ubiq<\/a>&nbsp;makes it easy to visualize data, and monitor them in real-time dashboards.&nbsp;<a href=\"https:\/\/ubiq.co\/accounts\/register\">Try Ubiq<\/a>&nbsp;for free.<\/p>\n\n\n\n<p>Also Read : <br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-remove-www-from-domain-url-in-nginx\/\">How to Remove WWW from Domain URL in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-redirect-http-to-https-in-nginx\/\">How to Redirect HTTP to HTTPS in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-configure-basic-authentication-in-nginx\/\">How to Configure Basic Authentication in NGINX<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-create-custom-404-page-in-nginx\/\">How to Create Custom 404 Page in NGINX<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes NGINX gives 413 Request too large error. Here is how to fix NGINX 413 request too large error.<\/p>\n","protected":false},"author":1,"featured_media":2466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[242,243],"class_list":["post-2454","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-nginx-413","tag-request-too-large"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Fix NGINX 413 Request Too Large Error - Ubiq BI<\/title>\n<meta name=\"description\" content=\"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix NGINX 413 Request Too Large Error - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-27T05:24:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T04:33:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Fix NGINX 413 Request Too Large Error\",\"datePublished\":\"2020-11-27T05:24:51+00:00\",\"dateModified\":\"2025-11-13T04:33:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/\"},\"wordCount\":860,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1\",\"keywords\":[\"nginx 413\",\"request too large\"],\"articleSection\":[\"Nginx\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/\",\"name\":\"How to Fix NGINX 413 Request Too Large Error - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1\",\"datePublished\":\"2020-11-27T05:24:51+00:00\",\"dateModified\":\"2025-11-13T04:33:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1\",\"width\":2048,\"height\":1024,\"caption\":\"nginx 413 request too large\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/how-to-fix-nginx-413-request-too-large-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix NGINX 413 Request Too Large Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix NGINX 413 Request Too Large Error - Ubiq BI","description":"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix NGINX 413 Request Too Large Error - Ubiq BI","og_description":"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-11-27T05:24:51+00:00","article_modified_time":"2025-11-13T04:33:29+00:00","og_image":[{"width":2048,"height":1024,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png","type":"image\/png"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Fix NGINX 413 Request Too Large Error","datePublished":"2020-11-27T05:24:51+00:00","dateModified":"2025-11-13T04:33:29+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/"},"wordCount":860,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1","keywords":["nginx 413","request too large"],"articleSection":["Nginx"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/","name":"How to Fix NGINX 413 Request Too Large Error - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1","datePublished":"2020-11-27T05:24:51+00:00","dateModified":"2025-11-13T04:33:29+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"If you upload large files, NGINX may give 413 request entity too large error. Let us learn more about this error and how to fix it.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1","width":2048,"height":1024,"caption":"nginx 413 request too large"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-fix-nginx-413-request-too-large-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix NGINX 413 Request Too Large Error"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/11\/413-request-entity-too-large.png?fit=2048%2C1024&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-DA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=2454"}],"version-history":[{"count":31,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2454\/revisions"}],"predecessor-version":[{"id":9944,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/2454\/revisions\/9944"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/2466"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=2454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=2454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=2454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}