Mercurial > hg > nginx-site
diff xml/ru/docs/http/ngx_http_index_module.xml @ 351:a4fa80755eab
Consistently strip initial offset in examples.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 24 Jan 2012 11:01:22 +0000 |
parents | f28abb2ea638 |
children | aef88cb1d75c |
line wrap: on
line diff
--- a/xml/ru/docs/http/ngx_http_index_module.xml Tue Jan 24 10:15:25 2012 +0000 +++ b/xml/ru/docs/http/ngx_http_index_module.xml Tue Jan 24 11:01:22 2012 +0000 @@ -20,9 +20,9 @@ <para> <example> - location / { - index index.$geo.html index.html; - } +location / { + index index.$geo.html index.html; +} </example> </para> @@ -45,7 +45,7 @@ В конце списка может стоять файл с абсолютным путём. Пример: <example> - index index.$geo.html index.0.html /index.html; +index index.$geo.html index.0.html /index.html; </example> </para> @@ -55,13 +55,13 @@ location’е. Например, в такой конфигурации: <example> - location = / { - index index.html; - } +location = / { + index index.html; +} - location / { - ... - } +location / { + ... +} </example> запрос “<literal>/</literal>” будет фактически обработан во втором location’е как “<literal>/index.html</literal>”.