Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Mon Sep 25, 2017 10:19 am


This forum is dedicated to Apache, Nginx, Lighttpd, Squid and other HTTP transport protocol related software

Author Message
admin
Post  Post subject: NGINX: 413 Request Entity Too Large  |  Posted: Thu Sep 14, 2017 4:48 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 101

Offline
 

NGINX: 413 Request Entity Too Large

Edit nginx.conf or vhost configuration file and modify or add following line adjusting the desired size.:

Code:
...
      # Upload maximum size
      client_max_body_size 15M;
...


If your site is most probably using PHP, nginx also needs to set the following php parameter:

Code:
...
        location ~\.php($|/) {
                fastcgi_param PHP_VALUE "post_max_size=15M \n upload_max_filesize=15M ";
...

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "NGINX: 413 Request Entity Too Large"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. NGINX: how to set the default virtual host

mandrei99

0

738

Thu Dec 12, 2013 6:01 am

mandrei99 View the latest post

There are no new unread posts for this topic. Nginx: How to list virtual hosts

mandrei99

0

9102

Mon Feb 23, 2015 5:05 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Attachment(s) Nginx + apache (for PHP) with real IP addresses in logs

designeru

0

876

Tue May 18, 2010 9:49 am

designeru View the latest post

There are no new unread posts for this topic. Nginx + php-fpm increase upload_max_filesize and other php values per vhost

mandrei99

0

5052

Mon Jan 02, 2012 9:04 am

mandrei99 View the latest post

There are no new unread posts for this topic. NGINX: How to redirect http to https website

mandrei99

0

1761

Mon Feb 09, 2015 3:27 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Converting PhpBB-SEO Apache RewriteRule to Nginx rewrite

debuser

0

2629

Tue Feb 23, 2010 5:00 am

debuser View the latest post

There are no new unread posts for this topic. Apache to Nginx Server parameters translation with php function

debuser

0

58116

Thu Aug 26, 2010 7:47 am

debuser View the latest post

There are no new unread posts for this topic. Starting nginx: [emerg]: directive "rewrite" is not terminated by ";"

debuser

0

4751

Tue Feb 23, 2010 6:05 am

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO