分类 - Nginx

? Nginx ?    2016-05-24 22:04:28    1093    0    0
Syntax:client_header_buffer_size size;
Default:

client_header_buffer_size 1k;

Context:httpserver

Sets buffer size for reading client request header. For most requests, a buffer of 1K bytes is enough. However, if a request includes long cookies, or comes from a WAP client, it may not fit into 1K. If a request line or a request header field does not fit into this buffer then larger buffers, configured by the large_client_header_buffers directive, are allocated.

设置读取客户端请求头的缓存大小。大多数请求使用默认1kb已经足够了。然而,如果一个请求包含超长cookie,或者来自于wap客户端,那么1k缓存大小可能就不适用了。如果请求行或者请求头大小超过缓存大小,则使用large_client_header_buffers 设置的缓存来接收请求。


Syntax:large_client_header_buffers number size;
Default:

large_client_header_buffers 4 8k;

Context:httpserver

Sets the maximum number and size of buffers used for reading large client request header. A request line cannot exceed the size of one buffer, or the 414 (Request-URI Too Large) error is returned to the client. A request header field cannot exceed the size of one buffer as well, or the 4