Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_core_module.xml @ 738:0914bbb59fd2
Expanded "location" examples with another prefix location.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 19 Oct 2012 12:25:29 +0000 |
parents | 1f383a8bccdb |
children | 082a725038db |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_core_module" link="/en/docs/http/ngx_http_core_module.html" lang="en" - rev="7"> + rev="8"> <section id="directives" name="Directives"> @@ -1447,19 +1447,24 @@ location / { [ configuration B ] } +location /documents/ { + [ configuration C ] +} + location ^~ /images/ { - [ configuration C ] + [ configuration D ] } location ~* \.(gif|jpg|jpeg)$ { - [ configuration D ] + [ configuration E ] } </example> The “<literal>/</literal>” request will match configuration A, +the “<literal>/index.html</literal>” request will match configuration B, the “<literal>/documents/document.html</literal>” request will match -configuration B, -the “<literal>/images/1.gif</literal>” request will match configuration C, and -the “<literal>/documents/1.jpg</literal>” request will match configuration D. +configuration C, +the “<literal>/images/1.gif</literal>” request will match configuration D, and +the “<literal>/documents/1.jpg</literal>” request will match configuration E. </para> <para>