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.
相關文章
相關標籤/搜索