Thengx_stream_map_modulemodule (1.11.2) creates variables whose values depend on values of other variables. Example Configuration map $remote_addr $limit { 127.0.0.1 ""; default $binary_remote_addr; } limit_conn_zone $limit zone=addr:10m; limit_conn addr 1; Directives Creates a new variab...
由于只有在使用变量时才计算变量,因此仅仅声明大量的map变量不会增加连接处理的额外成本。 map块内的参数指定源值和结果值之间的映射。 源值被指定为字符串或正则表达式。 字符串匹配忽略案件。 正则表达式应该从~用于区分大小写匹配的“~*”符号开始,或者从用于不区分大小写匹配的符号开始。正则表达式可以包含命名和位...
ngx_stream_map_module 文章/答案/技术大牛搜索 搜索关闭 发布 ngx_stream_map_module nginxngx_stream_map_module 目录 ngx_stream_map_module
map string $variable { ... } Default: — Context: stream Creates a new variable whose value depends on values of one or more of the source variables specified in the first parameter. Since variables are evaluated only when they are used, the mere declaration even of a large number of “...
ngx_stream_map_module 模块(1.11.2+)创建变量,其值取决于其他变量的值。 示例配置 map $remote_addr $limit { 127.0.0.1 ""; default $binary_remote_addr; } limit_conn_zone $limit zone=addr:10m; limit_conn addr 1; map 语法:map string $variable { … } 默认:— 上下文:stream 创建新变量...