# HG changeset patch # User Ruslan Ermilov # Date 1329342342 0 # Node ID 2638f67205ee36c9d0f237420d279bdc104ea968 # Parent cbc2d1b51cb6db797a72183db3e13e7372fd09ea Documented the disable_symlinks directive. diff --git a/xml/en/docs/http/ngx_http_core_module.xml b/xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -464,6 +464,57 @@ using XFS under Linux, it needs to be in + + + on | + off | + if_not_owner +off +http +server +location +1.1.15 + + +Determines how nginx treats symbolic links when opening files: + + +off + +Symbolic links in the pathname are not processed specially. +This is the default behavior. + + +on + +If any component of the pathname is a symbolic link, +access to a file is denied. + + +if_not_owner + +Access to a file is denied if any component of the pathname +is a symbolic link, and the link and object that the link +points to have different owners. + + + + + + +This directive is only available on systems that have the +openat and fstatat interfaces. +This includes modern versions of FreeBSD, Linux, and Solaris. + + + +Parameters on and if_not_owner +add a processing overhead. + + + + + code ... diff --git a/xml/ru/docs/http/ngx_http_core_module.xml b/xml/ru/docs/http/ngx_http_core_module.xml --- a/xml/ru/docs/http/ngx_http_core_module.xml +++ b/xml/ru/docs/http/ngx_http_core_module.xml @@ -453,6 +453,58 @@ directio 4m; + + + on | + off | + if_not_owner +off +http +server +location +1.1.15 + + +Определяет, как следует поступать с символическими ссылками +при открытии файлов: + + +off + +Символические ссылки в пути никак специально не обрабатываются. +Это стандартное поведение. + + +on + +Если любой компонент пути является символической ссылкой, +доступ к файлу запрещается. + + +if_not_owner + +Доступ к файлу запрещается, если любой компонент пути +является символической ссылкой, и ссылка и объект, на +который она ссылается, имеют разных владельцев. + + + + + + +Эта директива доступна только на системах, в которых есть +интерфейсы openat и fstatat. +К таким системам относятся современные версии FreeBSD, Linux и Solaris. + + + +Параметры on и if_not_owner +требуют дополнительных затрат на обработку. + + + + + код ...