﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
97	try_files and alias problems	Maxim Dounin	somebody	"{{{
# bug: request to ""/test/x"" will try ""/tmp/x"" (good) and
# ""/tmp//test/y"" (bad?)
location /test/ {
    alias /tmp/;
    try_files $uri /test/y =404;
}
}}}

{{{
# bug: request to ""/test/x"" will fallback to ""fallback"" instead of ""/test/fallback""
location /test/ {
    alias /tmp/;
    try_files $uri /test/fallback?$args;
}
}}}

{{{ 
# bug: request to ""/test/x"" will try ""/tmp/x/test/x"" instead of ""/tmp/x""
location ~ /test/(.*) {
    alias /tmp/$1;
    try_files $uri =403;
}
}}}

Or document special case for regexp locations with alias? See 3711bb1336c3.

{{{
# bug: request ""/foo/test.gif"" will try ""/tmp//foo/test.gif""
location /foo/ {
    alias /tmp/;
    location ~ gif {
        try_files $uri =405;
    }
}
}}}"	defect	accepted	minor		nginx-core			try_files alias		na	na
