Nginx在匹配location的时候,不是按照配置代码给出的顺序进行匹配的,而是先按照匹配表达式中的文字字符串(literal string)的明确程度,从最明确的开始匹配。这么说可能有点含混不清,简单说,没有正则规则的匹配表达式,是最明确的。
基于78个网页-相关网页
literal string constant [计] 文字串常量
literal string pool 文字字列集用场
regular-string-literal 规则字符串
verbatim-string-literal 逐字的字符串
string-literal 字符串 ; 字符串字面量
String literal concatenation 串字面值的连接
quoted-string literal [计] 引证串文字
Character and String Literal 字符和字符串常量
a managed string literal 受控的字符串常量
All characters are ordinary, the expression is a literal string.
所有字符都是普通的,表达式是字面字符串。
This test verifies the helper method output by using a literal string value that contains double quotes.
该测试通过使用含有双引号的文字字符串来检查该辅助方法的输出。
Curly brackets instruct DB2 to evaluate and process the enclosed expression rather than treat it as a literal string.
花括号指示DB 2计算和处理其中的表达式,而不是将其当作文字字符串。
应用推荐