'Request Entity Too Large' error when uploading an attachment due to NGINX proxy server
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
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/;
}
}
}
この内容はお役に立ちましたか?