时间: 2020-09-3|tag:18次围观|0 条评论

设置gunicorn 参数
--limit-request-line 8188 (默认是4094)

参考

limit_request_line--limit-request-line INT4094The maximum size of HTTP request line in bytes.This parameter is used to limit the allowed size of a client’s HTTP request-line. Since the request-line consists of the HTTP method, URI, and protocol version, this directive places a restriction on the length of a request-URI allowed for a request on the server. A server needs this value to be large enough to hold any of its resource names, including any information that might be passed in the query part of a GET request. Value is a number from 0 (unlimited) to 8190.This parameter can be used to prevent any DDOS attack.

 

文章转载于:https://www.cnblogs.com/kaituorensheng/p/12591531.html

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《Gunicorn启动时 nginx 400 request line is too large (4360 4094)
   

还没有人抢沙发呢~