# HG changeset patch # User Ruslan Ermilov # Date 1330620407 0 # Node ID b27974b92a5889de0461472f826383c5d12cb5d7 # Parent fd183bec183053bc5ed8bbf492335a49004585bb - corrected the description of the from= parameter of the disable_symlinks directive, added a note about modules that do not currently respect this directive - mentioned that ngx_http_addition_module's directives also make internal requests diff -r fd183bec1830 -r b27974b92a58 xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Wed Feb 29 14:36:07 2012 +0000 +++ b/xml/en/docs/http/ngx_http_core_module.xml Thu Mar 01 16:46:47 2012 +0000 @@ -469,7 +469,7 @@ on | if_not_owner - [from=prefix] + [from=part] off http server @@ -499,18 +499,21 @@ points to have different owners. -from=prefix +from=part When checking symbolic links (parameters on and if_not_owner), -each component of the pathname is normally checked. -If however the -from=prefix is also given, -symbolic links are checked only from the component of the pathname -specified by prefix. -The prefix value can contain variables. -If a value is not a prefix of the checked pathname, the whole +all components of the pathname are normally checked. +Checking of symbolic links in the initial part of the pathname +may be avoided by also specifying the +from=part parameter. +In this case, symbolic links are checked only from +the component of the pathname following the specified initial part. +If a value is not an initial part of the checked pathname, the whole pathname is checked as if this parameter was not specified at all. +If a value fully matches the file name, +symbolic links are not checked. +The parameter value can contain variables. @@ -534,9 +537,18 @@ add a processing overhead. On systems that do not support opening directories for search only, -the use of these parameters requires that -worker processes be able to read all intermediate -directories. +the use of these parameters requires that worker processes +have read permissions for all checked directories. + + + + + +The +ngx_http_autoindex_module, +ngx_http_random_index_module, +and ngx_http_dav_module.xml +modules currently ignore this directive. @@ -702,8 +714,11 @@ subrequests formed by the “include virtual” -command of the module -ngx_http_ssi_module; +command of the +ngx_http_ssi_module +module and by the +ngx_http_addition_module +module directives; diff -r fd183bec1830 -r b27974b92a58 xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml Wed Feb 29 14:36:07 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_core_module.xml Thu Mar 01 16:46:47 2012 +0000 @@ -458,7 +458,7 @@ on | if_not_owner - [from=префикс] + [from=часть] off http server @@ -489,18 +489,21 @@ который она ссылается, имеют разных владельцев. -from=префикс +from=часть При проверке символических ссылок (параметры on и if_not_owner) -обычно проверяется каждый элемент пути. -Однако если дополнительно указан параметр -from=префикс, -символические ссылки проверяются лишь начиная с элемента пути, -заданного префиксом. -В значении префикса можно использовать переменные. -Если значение не является префиксом проверяемого пути, +обычно проверяются все компоненты пути. +Можно не проверять символические ссылки в начальной части пути, +указав дополнительно параметр +from=часть. +В этом случае символические ссылки проверяются лишь начиная +с компонента пути, который следует за заданной начальной частью. +Если значение не является начальной частью проверяемого пути, путь проверяется целиком, как если бы этот параметр не был указан вовсе. +Если значение целиком совпадает с именем файла, +символические ссылки не проверяются. +В значении параметра можно использовать переменные. @@ -524,11 +527,19 @@ требуют дополнительных затрат на обработку. На системах, не поддерживающих операцию открытия каталогов только для поиска, -использование этих параметров требует, чтобы -рабочие процессы имели возможность читать все -промежуточные каталоги. +использование этих параметров требует, чтобы рабочие процессы +имели право читать все проверяемые каталоги. - + + + + +Модули +ngx_http_autoindex_module, +ngx_http_random_index_module +и ngx_http_dav_module.xml +в настоящий момент игнорируют эту директиву. + @@ -690,7 +701,9 @@ подзапросы, формируемые командой “include virtual” модуля -ngx_http_ssi_module; +ngx_http_ssi_module +и директивами модуля +ngx_http_addition_module;