普通的情况,通过增加如下配置
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.