# HG changeset patch # User Ruslan Ermilov # Date 1350649529 0 # Node ID 0914bbb59fd23e5d6fe24da7c0bf10bdb62d0ce0 # Parent 46bb8caea2ab0c843a3eed77e83201705ad23bc2 Expanded "location" examples with another prefix location. diff -r 46bb8caea2ab -r 0914bbb59fd2 xml/en/docs/http/ngx_http_core_module.xml --- 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 @@ + rev="8">
@@ -1447,19 +1447,24 @@ [ configuration B ] } +location /documents/ { + [ configuration C ] +} + location ^~ /images/ { - [ configuration C ] + [ configuration D ] } location ~* \.(gif|jpg|jpeg)$ { - [ configuration D ] + [ configuration E ] } The “/” request will match configuration A, +the “/index.html” request will match configuration B, the “/documents/document.html” request will match -configuration B, -the “/images/1.gif” request will match configuration C, and -the “/documents/1.jpg” request will match configuration D. +configuration C, +the “/images/1.gif” request will match configuration D, and +the “/documents/1.jpg” request will match configuration E. diff -r 46bb8caea2ab -r 0914bbb59fd2 xml/ru/docs/http/ngx_http_core_module.xml --- 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 @@ + rev="8">
@@ -1434,18 +1434,23 @@ [ конфигурация Б ] } +location /documents/ { + [ конфигурация В ] +} + location ^~ /images/ { - [ конфигурация В ] + [ конфигурация Г ] } location ~* \.(gif|jpg|jpeg)$ { - [ конфигурация Г ] + [ конфигурация Д ] } Для запроса “/” будет выбрана конфигурация А, -для запроса “/documents/document.html” — конфигурация Б, -для запроса “/images/1.gif” — конфигурация В, -а для запроса “/documents/1.jpg” — конфигурация Г. +для запроса “/index.html” — конфигурация Б, +для запроса “/documents/document.html” — конфигурация В, +для запроса “/images/1.gif” — конфигурация Г, +а для запроса “/documents/1.jpg” — конфигурация Д.