The official NGINX Open Source repository.
Go to file
Maxim Dounin 8d7c6491fe Upstream: fixed unexpected inheritance into limit_except blocks.
The proxy_pass directive and other handlers are not expected to be inherited
into nested locations, but there is a special code to inherit upstream
handlers into limit_except blocks, as well as a configuration into if{}
blocks.  This caused incorrect behaviour in configurations with nested
locations and limit_except blocks, like this:

    location / {
        proxy_pass http://u;

        location /inner/ {
            # no proxy_pass here

            limit_except GET {
                # nothing
            }
        }
    }

In such a configuration the limit_except block inside "location /inner/"
unexpectedly used proxy_pass defined in "location /", while it shouldn't.
Fix is to avoid inheritance of conf->upstream.upstream (and
conf->proxy_lengths) into locations which don't have noname flag.
2014-12-09 18:22:31 +03:00
auto Configure: remove outdated and unused patch.zlib.h. 2014-07-31 03:52:28 -07:00
conf MIME: added application/xspf+xml MIME type (ticket #479). 2014-03-06 10:51:08 +01:00
contrib Contrib: add more directives to vim syntax. 2014-10-22 15:31:19 +02:00
docs nginx-1.7.8-RELEASE 2014-12-02 16:02:14 +03:00
misc Updated OpenSSL used for win32 builds. 2014-10-28 17:35:00 +03:00
src Upstream: fixed unexpected inheritance into limit_except blocks. 2014-12-09 18:22:31 +03:00
.hgtags release-1.7.8 tag 2014-12-02 16:02:14 +03:00