413 Request Entity Too Large with Laravel Valet on Linux

This morning an interesting situation. Installed WordPress in a my Valet parked folder and tried to upload Elementor Pro a 3.3 MB file.

This is the error:

413 Request Entity Too Large

On a normal NGINX server this is pretty easy to troubleshoot, navigate to somewhere like this:


Add this:

client_max_body_size 20M;

in SSL section

However, because this is Laravel Valet for Linux, it’s not so straightforward. One has to first find the correct .conf file.

Spoiler alert

You might have to do it in two places, one for all your unsecured sites, and another quite specific site one for SSL protected sites.

cat /etc/nginx/nginx.conf have these clues in the end:


   include /etc/nginx/conf.d/*.conf;
   include /etc/nginx/sites-enabled/*;
   include /home/user/.valet/Nginx/*;


mc -e /home/user/.valet/Nginx/my-site.test


Laravel Valet Nginx error 413: Request entity too large – Fix

Share this article

Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top