- 语法: client_body_in_file_only on|clean|off;
- 默认: client_body_in_file_only off;
- 配置块: http、server、location
- 语法: client_body_in_single_buffer on|off;
- 默认: client_body_in_single_buffer off;
- 配置块: http、server、location
- 语法: client_header_buffer_size size;
- 默认: client_header_buffer_size 1k;
- 配置块: http、server
- 语法: large_client_header_buffers number size;
- 默认: large_client_header_buffers 48k;
- 配置块: http、server
- 语法: client_body_buffer_size size;
- 默认: client_body_buffer_size 8k/16k;
- 配置块: http、server、location
- 语法: client_body_temp_path dir-path[level1[level2[level3]]]
- 默认: client_body_temp_path client_body_temp;
- 配置块: http、server、location
client_body_temp_path opt nginx/client_temp 1 2;
optnginx/client_temp/6/45/00000123456
- 语法: connection_pool_size size;
- 默认: connection_pool_size 256;
- 语法: request_pool_size size;
- 默认: request_pool_size 4k;
- 配置块: http、server
Nginx开始处理HTTP请求时,将会为每个请求都分配一个内存池,size配置项将指定这
- 语法: reset_timeout_connection on|off;
- 默认: reset_timeout_connection off;
- 配置块: http、server、location
- 语法: client_header_timeout time(默认单位:秒);
- 默认: client_header_timeout 60;
- 配置块: http、server、location
- 语法: client_body_timeout time(默认单位:秒);
- 默认: client_body_timeout 60;
- 配置块: http、server、location
- 语法: send_timeout time;
- 默认: send_timeout 60;
- 配置块: http、server、location
- 语法: reset_timeout_connection on|off;
- 默认: reset_timeout_connection off;
- 配置块: http、server、location
- 语法: lingering_close off|on|always;
- 默认: lingering_close on;
- 配置块: http、server、location
- 语法: lingering_time time;
- 默认: lingering_time 30s;
- 配置块: http、server、location
- 语法: lingering_timeout time;
- 默认: lingering_timeout 5s;
- 配置块: http、server、location
- 语法: keepalive_disable[msie6|safari|none]...
- 默认: keepalive_disable msie6 safari
- 配置块: http、server、location
- 语法: keepalive_timeout time(默认单位:秒);
- 默认: keepalive_timeout 75;
- 配置块: http、server、location
- 语法: keepalive_requests n;
- 默认: keepalive_requests 100;
- 配置块: http、server、location
MIME(Multipurpose Internet Mail Extensions)多用途互联网邮件扩展类型。是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式
- 语法: type{...};
- 配置块: http、server、location
- types {
- text/html html;
- text/html conf;
- image/gif gif;
- image/jpeg jpg;
- }
- 语法: default_type MIME-type;
- 默认: default_type text/plain;
- 配置块: http、server、location
- 语法: types_hash_bucket_size size;
- 默认: types_hash_bucket_size 32|64|128;
- 配置块: http、server、location
按HTTP方法名限制用户请求
- 语法: limit_except method...{...}
- 配置块: location
- limit_except GET {
- allow 192.168.1.0/32;
- deny all;
- }
- 语法: client_max_body_size size;
- 默认: client_max_body_size 1m;
- 配置块: http、server、location
- 语法: limit_rate speed;
- 默认: limit_rate 0;
- 配置块: http、server、location、if