The Rule of nginx location Match

location [ = | ~ | ~* | ^~ ] uri { … }

  • '=': 跟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.

你可能感兴趣的:(The Rule of nginx location Match)