changeset 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 46bb8caea2ab
children 89a4b7e22e24
files xml/en/docs/http/ngx_http_core_module.xml xml/ru/docs/http/ngx_http_core_module.xml
diffstat 2 files changed, 22 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_core_module.xml	Thu Oct 18 13:42:19 2012 +0000
+++ b/xml/en/docs/http/ngx_http_core_module.xml	Fri Oct 19 12:25:29 2012 +0000
@@ -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 @@
     [ 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>
--- a/xml/ru/docs/http/ngx_http_core_module.xml	Thu Oct 18 13:42:19 2012 +0000
+++ b/xml/ru/docs/http/ngx_http_core_module.xml	Fri Oct 19 12:25:29 2012 +0000
@@ -10,7 +10,7 @@
 <module name="Модуль ngx_http_core_module"
         link="/ru/docs/http/ngx_http_core_module.html"
         lang="ru"
-        rev="7">
+        rev="8">
 
 <section id="directives" name="Директивы">
 
@@ -1434,18 +1434,23 @@
     [ конфигурация Б ]
 }
 
+location /documents/ {
+    [ конфигурация В ]
+}
+
 location ^~ /images/ {
-    [ конфигурация В ]
+    [ конфигурация Г ]
 }
 
 location ~* \.(gif|jpg|jpeg)$ {
-    [ конфигурация Г ]
+    [ конфигурация Д ]
 }
 </example>
 Для запроса “<literal>/</literal>” будет выбрана конфигурация А,
-для запроса “<literal>/documents/document.html</literal>” — конфигурация Б,
-для запроса “<literal>/images/1.gif</literal>” — конфигурация В,
-а для запроса “<literal>/documents/1.jpg</literal>” — конфигурация Г.
+для запроса “<literal>/index.html</literal>” — конфигурация Б,
+для запроса “<literal>/documents/document.html</literal>” — конфигурация В,
+для запроса “<literal>/images/1.gif</literal>” — конфигурация Г,
+а для запроса “<literal>/documents/1.jpg</literal>” — конфигурация Д.
 </para>
 
 <para>