| Syntax: | map  | 
|---|---|
| Default: | — | 
| Context: | http | 
map 指令
类似编程语言的switch case
map $http_user_agent $mobile {#这个含义就是 当$http_user_agent 值 = "~Opera Mini" 那么我们就将 $mobile值设置为 1 否则就设置为 0 default 0; "~Opera Mini" 1; }
| Syntax: | map_hash_bucket_size  | 
|---|---|
| Default: | map_hash_bucket_size 32|64|128; | 
| Context: | http | 
| Syntax: | map_hash_max_size  | 
|---|---|
| Default: | map_hash_max_size 2048; | 
| Context: | http | 
原文:https://www.cnblogs.com/jackey2015/p/10396898.html