码迷,mamicode.com
首页 > 其他好文 > 详细

Gunicorn启动时 nginx 400 request line is too large (4360 4094)

时间:2020-03-29 12:26:51      阅读:63      评论:0      收藏:0      [点我收藏+]

标签:length   sts   restrict   limit_req   ted   max   eve   request   pre   

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

参考

limit_request_line
--limit-request-line INT
4094
The 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.

 

Gunicorn启动时 nginx 400 request line is too large (4360 4094)

标签:length   sts   restrict   limit_req   ted   max   eve   request   pre   

原文地址:https://www.cnblogs.com/kaituorensheng/p/12591531.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!