Opened 5 years ago
Closed 5 years ago
#1963 closed defect (invalid)
Documentation does not mention important info about named locations at try_files
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | documentation | Version: | 1.17.x |
Keywords: | Cc: | ||
uname -a: | |||
nginx -V: | no version |
Description
The full post is [here](In short there is no info about how to use many named locations at try_files directive)
In short there is no info about how to use many named locations at try_files directive
Note:
See TracTickets
for help on using tickets.
The documentation clearly says:
Note that no other parameters are allowed to be named locations, as these parameters specify files to test, not locations. That is, the full information about using multiple named locations in the
try_files
directive is as follows: you can't, you can only use one named location as a fallback URI.If you need to use multiple named locations in the
try_files
directive for some reason, you probably want to use something different instead. Like either using multiple locations with multipletry_files
directives (if you want to test files, but cannot do so with just onetry_files
directive, for example, due complex directory structure and different root directories), or using the error_page-based fallback instead if you want to test multiple upstream servers.