nginx——限制上傳文件的大小

client_max_body_size 用於設置最大的允許客戶端請求主體的大小,在請求首部中有 「Content-Length」 ,如果超過了此配置項,客戶端會收到 413 錯誤,即請求的條目過大 http { include mime.types; server_names_hash_bucket_size 512; default_type application/octet-stream;
相關文章
相關標籤/搜索