마이크로스택 -> 413 요청 엔터티가 너무 큼

마이크로스택 -> 413 요청 엔터티가 너무 큼

마이크로스택에 이미지를 생성하려고 하면 413 오류가 발생합니다. 미리 감사드립니다

봉쥬르,

J'ai une erreur 413 quand je souhaite créer une image sur microstack fraichement installé.

Merci d'avance pour votre 보좌관

프레데릭


<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>

오류를 보려면 여기를 클릭하세요.

답변1

에서선적 서류 비치nginx는 서버 블록의 파일 크기 업로드를 제한한다는 것을 알 수 있습니다.

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.

파일을 편집 sudo vim /etc/nginx/nginx.conf하거나 다음 을 수행하십시오 sudo vim /var/snap/microstack/common/etc/nginx/snap/nginx.conf.

http client_max_body_size를 원하는 iso보다 큰 크기로 설정하세요.

http {
    ...
    client_max_body_size 2000M;
}

이제 sudo systemctl reload nginx또는 로 다시 시작하세요.sudo snap restart microstack

관련 정보