NGINX 413 how to change this server wide ?

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
892
313
cPanel Access Level
Root Administrator
Hey there! We have an article about this issue here:


Can you try that and see if that helps with the problems you're seeing?
 
  • Like
Reactions: danfbach

dblundell

Registered
PartnerNOC
Feb 4, 2014
1
2
53
cPanel Access Level
DataCenter Provider
Hi Marvin,

We made the same change server-wide rather than having to do per-user by creating a file /etc/nginx/conf.d/max-file-size.conf with the content:
client_max_body_size 32M;

I suggest running "nginx -t" after editing files to double-check that the config is correct before restarting nginx.

Cheers,

David
 
  • Like
Reactions: leonep and cPRex

leonep

Well-Known Member
Nov 18, 2014
168
10
68
Pescara
cPanel Access Level
Root Administrator
thanks @dblundell
your solution works fine


i paste here wordpress error ( i think this help people with nginx )
Code:
Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again.

Regards
 
  • Like
Reactions: cPRex