# HG changeset patch # User Ruslan Ermilov # Date 1318179416 0 # Node ID d98323a15ba4bd40d4fbc33eb15fb4f7a4f10c65 # Parent 9332d7a02822b4b6e9068b812888adc279c5fce7 Documented the nested locations. diff -r 9332d7a02822 -r d98323a15ba4 xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Sun Oct 09 16:35:32 2011 +0000 +++ b/xml/en/docs/http/ngx_http_core_module.xml Sun Oct 09 16:56:56 2011 +0000 @@ -996,9 +996,7 @@ location @name { ... } server - Sets a configuration based on a request URI. @@ -1018,6 +1016,10 @@ +Locations can be nested, with some exceptions mentioned below. + + + For case-insensitive operating systems such as Mac OS X and Cygwin, the string matching ignores a case (0.7.7). However, comparison is limited to one-byte locales. @@ -1041,13 +1043,16 @@ defining location = / will speed up the processing of these requests, as search terminates right after the first comparison. +Such a location cannot obviously contain nested locations. + In versions from 0.7.1 to 0.8.41, if a request matched the prefix location without the = and ^~ prefixes, the search also terminated and regular expressions were not checked. + @@ -1080,6 +1085,7 @@ The @ prefix defines a named location. Such a location is not used for a regular request processing, but instead used for request redirection. +They cannot be nested, and cannot contain nested locations.