概要
このトピックでは、GETリクエストに対してHTTPステータスコード413が返される問題を処理する方法について説明します。
問題の説明
If the header size of a GET request exceeds 10 KB, HTTP status code 413 is returned.
発生源
- If you deploy Anti-DDoS Pro or Anti-DDoS Premium, WAF, SLB instance, and ECS instance in sequence, HTTP status code 413 is returned. ブラウザのデバッグモードでエラーを照会できます。
- If the SLB instance uses a TCP listener, HTTP status code 413 is returned when client_max_body_size of NGINX is set to a very small value.
- hostsファイルを変更してリクエストをECSインスタンスにリダイレクトすると、HTTPステータスコード413が返されます。 It means that the issue is caused by incorrect configurations of NGINX.
対応策
次の制限に基づいてclient_max_body_sizeを設定します。
- Anti-DDoS ProまたはAnti-DDoS Premium: 800 MB
- WAF: 3 MB
- SLB: 50 GB
適用範囲
- Anti-DDoS ProとAnti-DDoS Premium