Score:0

nginx large file upload limit

us flag

I am using Laravel Forge to manage my server and I had a problem with uploading large files with livewire. after 100 seconds uploadng fails and shows this error:

net::ERR_HTTP2_PING_FAILED

and sometimes:

ERR_CONNECTION_RESET

my PHP timeout is 1000 and upload file size is 1.5 GB but I don't know why this happens. I tried setting these in my nginx configuration but it did not help.

fastcgi_read_timeout 1000;
client_header_timeout 1m;
client_body_timeout 1m;
proxy_connect_timeout 60s;
proxy_read_timeout 1m;
proxy_send_timeout 1m;
Score:1
us flag

It turns out it was not nginx problem, Kaspersky on my system was killing the requests.

I hope this helps others too.

Score:0
cn flag

Check the error logs for nginx for details (Probably /var/log/nginx/error.log), but it might be as simple as needing to set: client_max_body_size 2g in nginx config.

Mohammad Zahed avatar
us flag
There is nothing in the logs and I already increased client_max_body_size but it did not work.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.