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;
}指令
map
map_hash_bucket_size
map_hash_max_size
原文档
最后更新于