Mercurial > hg > nginx-site
diff xml/en/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 | 197ac51e7f0e |
children | be54c443235a |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_index_module.xml Tue Jan 24 10:15:25 2012 +0000 +++ b/xml/en/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 @@ The last element of the list can be a file with an absolute path. Example: <example> - index index.$geo.html index.0.html /index.html; +index index.$geo.html index.0.html /index.html; </example> </para> @@ -54,13 +54,13 @@ is made, and request can be processed in a different location. For example, with the following configuration: <example> - location = / { - index index.html; - } +location = / { + index index.html; +} - location / { - ... - } +location / { + ... +} </example> a request of “<literal>/</literal>” will actually be processed in the second location as “<literal>/index.html</literal>”.