
Tengo un error 413 cuando quiero crear una imagen en microstack. gracias de antemano
Buen día,
Tengo un error 413 cuando quiero crear una imagen en microstack recién instalada.
Merci d'avance pour votre aide
Federico
<html> <head><title>413 Request Entity Too Large</title></head> <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.13.0</center> </body> </html>
Respuesta1
En eldocumentaciónEncontrará que nginx limita la carga del tamaño de archivo de los bloques del servidor.
Syntax: client_max_body_size size;
Default:
client_max_body_size 1m;
Context: http, server, location
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.
Edite el archivo sudo vim /etc/nginx/nginx.conf
o
sudo vim /var/snap/microstack/common/etc/nginx/snap/nginx.conf
:
Establezca http client_max_body_size en un tamaño mayor que el iso que desee.
http {
...
client_max_body_size 2000M;
}
ahora reinícialo por
sudo systemctl reload nginx
osudo snap restart microstack