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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM