通过指定模式来与客户端请求的URI相匹配,基本语法如下:location [=|~|~*|^~|@] pattern{……}~ #区分大小写的正则匹配~* #不区分大小写的正则匹配^~ #普通字符匹配,如果此选项匹配成功,忽略其他匹配选项,一般用来匹配目录= #普通字符精确匹配 Last modification:September 8, 2019 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得这篇技术文章对你有用,请随意赞赏
Comment here is closed