zoukankan      html  css  js  c++  java
  • nginx报错 URL的query string太长导致

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

    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.

  • 相关阅读:
    Alpha冲刺Day5
    Alpha冲刺Day4
    Alpha冲刺Day3
    团队作业——随堂小测
    Alpha冲刺Day2
    Alpha冲刺Day1
    团队项目需求分析
    结对项目第二次作业
    Linux中exec命令相关
    .lib和.dll文件
  • 原文地址:https://www.cnblogs.com/faberbeta/p/14077336.html
Copyright © 2011-2022 走看看