map_hash_bucket_size 指令 语法:map_hash_bucket_size size; 默认值:map_hash_bucket_size 32|64|128; 上下文:http 设置映射变量哈希表的桶大小,默认值取决于处理器的缓存线大小。设置哈希表的详细信息在单独的文档中提供。 map_hash_max_size 指令 语法:map_hash_max_size size; 默认值:map_hash_max_size 2048; 上下文:http 设置映射变量哈希表的最大大...
ngx_http_map_module 示例配置 代码语言:javascript 复制 map $http_host $name{hostnames;default0;example.com1;*.example.com1;example.org2;*.example.org2;.example.net3;wap.*4;}map $http_user_agent $mobile{default0;"~Opera Mini"1;} 指令 创建一个新变量,其值取决于第一个参数中指定的一个...
ngx_http_map_module 请先看参阅的Nginx Map指令文档后吧。这里的说明比较简略。 基本使用Demo http{map"beijing"$Name{default"中国"; "beijing" "北京"; "shanghai1hao" "上海1号"; "shanghai2hao" "上海2号"; } } 在需要的地方使用$Name进行引用即可,会根据map指令后的第一个字符串的值进行判断主体...
ngx_http_image_filter_module ngx_http_index_module ngx_http_js_module ngx_http_keyval_module ngx_http_limit_conn_module ngx_http_limit_req_module ngx_http_log_module ngx_http_map_module ngx_http_map_module ngx_http_memcached_module ngx_http_mirror_module ngx_http_mp4_module ngx_http_perl...
nginx中文文档-ngx_http_map_module ngx_http_map_module模块创建依赖于其他变量值的变量。示例配置 map $http_host $name { hostnames; default 0; example.com 1; *.example.com 1; example.org 2; *.example.org 2; .example.net 3; wap.* 4; } map $http_user_agent $mobile { default 0; ...
模块ngx_http_map_module可以创建一些和另外变量相关联的变量。 配置范例 map $http_host $name { hostnames; default 0; example.com 1; *.example.com 1; example.org 2; *.example.org 2; .example.net 3; wap.* 4; } map $http_user_agent $mobile { default 0; "~Opera Mini" 1; } ...
nginx-vod-module / ngx_http_vod_volume_map.c ngx_http_vod_volume_map.c3.82 KB 一键复制编辑原始数据按行查看历史 Joel Linn提交于4年前.Allow for more than 32 tracks #include<ngx_http.h> #include"ngx_http_vod_submodule.h" #include"ngx_http_vod_utils.h" ...
ngx_http_map_module用于创建一个变量,该变量的值依赖于其他变量的值。(The ngx_http_map_module module creates variables whose values depend on values of other variables.) 配置样例 map$http_host$name{hostnames;default0;example.com1;*.example.com1;example.org2;*.example.org2;.example.net3;wap...