nginx工作进程示意图.png

(location =) > (location 完整路径) > (location ^~ 路径) > (location ~,~* 正则顺序) > (location 部分起始路径) > (/)

匹配符匹配规则优先级=精确匹配1^~以某个字符串开头,匹配上后则不再进行正则表达式匹配2~区分大小写的正则匹配3~*不区分大小写的正则匹配4!~区分大小写不匹配的正则5!~*...
Continue reading >>