try_files and a nested location regexp

Edho Arief me at myconan.net
Thu Oct 16 12:29:43 UTC 2014


On Thu, Oct 16, 2014 at 9:03 PM, igorb <nginx-forum at nginx.us> wrote:
> That does not work either. What works is try_files "" =404 together with an
> explicit alias as Francis Daly described in another post.
>

did you put it inside the aliased location block? That'd explain why
it doesn't work (as francis said, $document_root is overridden) unless
you add "root /test;" inside the block.

Seriously though, you better avoid using `alias` at all.



More information about the nginx mailing list