0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nginx Unit 413 Payload Too Large

Last updated at Posted at 2024-06-13

構成はNginx + Unitにしており,Nginxのclient_max_body_sizeの設定値以下のファイルを送信しているのにも関わらず413となる.

Unitの公式を見ると
https://unit.nginx.org/configuration/

max_body_sizeが設定できることが分かった.
初期値は8MBのようだ.

128MBまで上げる

{
	"settings": {
		"http": {
			"max_body_size": 134217728,
			...
		}
	},
	...
}

設定を適用

{
	"success": "Reconfiguration done."
}

忘れずにunitdを再起動して413が解消された.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?