The Rule of nginx location Match

location [ = | ~ | ~* | ^~ ] uri { ... }express

############url

  • '=': 跟url彻底相同。
  • '^~'或者什么都没有是表明:the whole request uri or only the beginning part of it.
  • '~' or '~', the uri part in the directive is a regular expression, with operator ~ for case sensitive match and operator ~ for case insensitive match.
相关文章
相关标签/搜索