# HG changeset patch # User Vladimir Homutov # Date 1349786371 0 # Node ID ec33576efaa53d567a56a5b4af618eb4c143c63f # Parent 1de09d81acd18e701aff64bb0be6829abcec0183 Added note about minimal impact of declaring multiple variables (geo, map). diff --git a/xml/en/docs/http/ngx_http_geo_module.xml b/xml/en/docs/http/ngx_http_geo_module.xml --- a/xml/en/docs/http/ngx_http_geo_module.xml +++ b/xml/en/docs/http/ngx_http_geo_module.xml @@ -55,6 +55,17 @@ geo $arg_remote_addr $geo { ...; } + + + + +Since variables are evaluated only when used, the mere existence +of even a large number of declared “geo” variables +does not incur any extra costs for request processing. + + + + If the value of a variable does not represent a valid IP address then the “255.255.255.255” address is used. diff --git a/xml/en/docs/http/ngx_http_map_module.xml b/xml/en/docs/http/ngx_http_map_module.xml --- a/xml/en/docs/http/ngx_http_map_module.xml +++ b/xml/en/docs/http/ngx_http_map_module.xml @@ -69,6 +69,14 @@ specified in the first parameter. + +Since variables are evaluated only when used, the mere existence +of even a large number of declared “map” variables +does not incur any extra costs for request processing. + + + + Parameters inside the map block specify a mapping between source and resulting values. diff --git a/xml/ru/docs/http/ngx_http_geo_module.xml b/xml/ru/docs/http/ngx_http_geo_module.xml --- a/xml/ru/docs/http/ngx_http_geo_module.xml +++ b/xml/ru/docs/http/ngx_http_geo_module.xml @@ -55,6 +55,18 @@ geo $arg_remote_addr $geo { ...; } + + + + +Поскольку переменные вычисляются только в момент использования, +само по себе наличие даже большого числа объявлений переменных +“geo” не влечёт за собой никаких дополнительных +расходов на обработку запросов. + + + + Если значение переменной не представляет из себя правильный IP-адрес, то используется адрес “255.255.255.255”. diff --git a/xml/ru/docs/http/ngx_http_map_module.xml b/xml/ru/docs/http/ngx_http_map_module.xml --- a/xml/ru/docs/http/ngx_http_map_module.xml +++ b/xml/ru/docs/http/ngx_http_map_module.xml @@ -69,6 +69,15 @@ map $http_user_agent $mobile { + +Поскольку переменные вычисляются только в момент использования, +само по себе наличие даже большого числа объявлений переменных +“map” не влечёт за собой никаких дополнительных +расходов на обработку запросов. + + + + Параметры внутри блока map задают соответствие между исходными и результирующими значениями.