#1649 closed enhancement (worksforme)
Improve documentation for the location block
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | documentation | Version: | |
Keywords: | Cc: | ||
uname -a: | N/A | ||
nginx -V: | N/A |
Description
The documentation for the location block does not clearly state the order in which matching is done for non-prefixed locations.
e.g.
location / {...} location /foo {...}
If I go to "/foo", are all the location blocks checked, and the longest match selected? Or is the written order taken into consideration?
The documentation currently only talks about prefixed locations or regular expressions, and provides no clarification for non-prefixed locations.
Change History (2)
comment:1 by , 6 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
I assumed that "prefix" means [ = | ~ | ~* | ~ ]. And by non-prefixed I meant if I don't use any of those.
If I understand you correctly, I need to read from somewhere: what's the definition of a prefixed string?
Is it defined somewhere else? if not, this term should be clarified.
There are no "non-prefixed" locations. Please consult with the documentation.
Here are some snippets for your convenience:
In general, a better place to ask user questions about nginx is the nginx@ mailing list.