# 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 -r 1de09d81acd1 -r ec33576efaa5 xml/en/docs/http/ngx_http_geo_module.xml --- a/xml/en/docs/http/ngx_http_geo_module.xml Tue Oct 09 12:30:15 2012 +0000 +++ b/xml/en/docs/http/ngx_http_geo_module.xml Tue Oct 09 12:39:31 2012 +0000 @@ -55,6 +55,17 @@ ...; } + + + + +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 -r 1de09d81acd1 -r ec33576efaa5 xml/en/docs/http/ngx_http_map_module.xml --- a/xml/en/docs/http/ngx_http_map_module.xml Tue Oct 09 12:30:15 2012 +0000 +++ b/xml/en/docs/http/ngx_http_map_module.xml Tue Oct 09 12:39:31 2012 +0000 @@ -69,6 +69,14 @@ + +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 -r 1de09d81acd1 -r ec33576efaa5 xml/ru/docs/http/ngx_http_geo_module.xml --- a/xml/ru/docs/http/ngx_http_geo_module.xml Tue Oct 09 12:30:15 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_geo_module.xml Tue Oct 09 12:39:31 2012 +0000 @@ -55,6 +55,18 @@ ...; } + + + + +Поскольку переменные вычисляются только в момент использования, +само по себе наличие даже большого числа объявлений переменных +“geo” не влечёт за собой никаких дополнительных +расходов на обработку запросов. + + + + Если значение переменной не представляет из себя правильный IP-адрес, то используется адрес “255.255.255.255”. diff -r 1de09d81acd1 -r ec33576efaa5 xml/ru/docs/http/ngx_http_map_module.xml --- a/xml/ru/docs/http/ngx_http_map_module.xml Tue Oct 09 12:30:15 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_map_module.xml Tue Oct 09 12:39:31 2012 +0000 @@ -69,6 +69,15 @@ + +Поскольку переменные вычисляются только в момент использования, +само по себе наличие даже большого числа объявлений переменных +“map” не влечёт за собой никаких дополнительных +расходов на обработку запросов. + + + + Параметры внутри блока map задают соответствие между исходными и результирующими значениями.