multiple named locations in try_files

Rob Schultz rschultz7 at
Sun Dec 6 07:35:58 MSK 2009

You are correct

If you read try files documentation try_files test for files existance  
and if none are found it goes to fallback which can be a named  
location. So named locations are only allowed for the fallback as  

Sent from my iPhone

On Dec 5, 2009, at 6:10 PM, Oleg Terenchuk <litwol at> wrote:

> This behavior leads me to believe that nginx allows named location
> only at the end of try_files, but documentation contradicts it. Which
> is correct?

More information about the nginx mailing list