How to resolve "413 Request Entity Too Large nginx/1.1.19" error?

  apache, apache2, laravel, nginx, php

When I’m trying to upload a file on my apache2, Laravel server I get this error:

413 Request Entity Too Large


Which of course means my file is too large.

But I changed php.ini

max_file_uploads 20

post_max_size 20M

upload_max_filesize 25M

& sites-available/site.conf

<VirtualHost *:80>
ServerName site

DocumentRoot /var/www/site/public

<Directory /var/www/site/public/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
        Require all granted

ErrorLog ${APACHE_LOG_DIR}/site-error.log
CustomLog ${APACHE_LOG_DIR}/site-access.log combined

LimitRequestBody 20000000

and sudo service apache2 restart

but error still having.




not exists

Source: Laravel

Leave a Reply