'Request Entity Too Large' error when uploading an attachment due to NGINX proxy server
問題
Users report that a file upload fails depending on its size. The following error appears when trying to upload a file:
413 Request Entity Too Large nginx/x.x.x |
症状
A 'Request Entity Too Large' error appears when uploading an attachment. The Confluence attachment max upload size is configured to a size larger than the attachment trying to be uploaded.
原因
Ngix does not allow attachment size upload larger than the one trying to be uploaded.
ソリューション
Increase the size limit in nginx.conf
. Include client_max_body_size xxM
inside the server section, where xx is the size (in megabytes) that you want to allow.
例:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
client_max_body_size 10M;
listen 80;
server_name localhost;
# Main location
location / {
proxy_pass http://127.0.0.1:8000/;
}
}
}
最終更新日: 2021 年 1 月 28 日
Powered by Confluence and Scroll Viewport.