首页 > Web开发 > 详细

nginx报错 URL的query string太长导致

时间:2020-12-03 10:09:32      阅读:170      评论:0      收藏:0      [点我收藏+]

普通的情况,通过增加如下配置

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.

nginx报错 URL的query string太长导致

原文:https://www.cnblogs.com/faberbeta/p/14077336.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!