普通的情況,通過增加如下配置
client_header_buffer_size 64k;
large_client_header_buffers 4 64k;
如果以上設置,調整過后還持續有問題
可能是http2導致的,需要調整http2_max_field_size這個
日志中會有類似如下的報錯
2017/11/08 03:46:35 [info] 68639#100081: *2 client exceeded http2_max_field_size limit while processing HTTP/2 connection, client: ..., server: ...
增加如下的配置
http2_max_field_size 8k
Syntax: http2_max_field_size size;
Default:
http2_max_field_size 4k;
Context: http, server
Limits the maximum size of an HPACK-compressed request header field. The limit applies equally to both name and value. Note that if Huffman encoding is applied, the actual size of decompressed name and value strings may be larger. For most requests, the default limit should be enough.