nginx's location mode

This blog writing is very nice, reprint:    https://www.jianshu.com/p/e154c2ef002f

Jot notes: 

  • Matching syntax: ^ ~ = ~ (case sensitive) ~ * (case insensitive)   
  • Priority: a principle, two small details precisely match (=)> prefix match (^ ~)> regular matching (~ and ~ *)> normal matching> fully matched sibling match: matches the longest non-regular URL ( regardless of location and position of the order), the regular match after match successfully stopped (pay attention to the location of the order of location)
  • Precision match: the difference between a character can not match the success of

Guess you like

Origin www.cnblogs.com/bneglect/p/11550248.html
Recommended