Skip to content

Instantly share code, notes, and snippets.

@zigo928
zigo928 / nginx-location
Created March 7, 2016 07:25 — forked from luxixing/nginx-location
nginx location 匹配规则
1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个
例如:
location /{
[matches]
}
location /test{
[matches]
}
2 精确匹配
location = /{