) location[ = | ~ | ~* | ^~ ] uri { ... }
当能匹配多次时,其匹配优先级:精确匹配=、^~、~或~*、不带符号的URL;
=:URI的精确匹配,其后多一个字符都不可以,精确匹配根
~:做正则表达式匹配,区分字符大小写;
~*:做正则表达式匹配,不区分字符大小写;
^~:URI的左半部分匹配,不区分字符大小写;
posted on 2017-05-18 08:39 叽叽喳喳,嘻嘻哈哈 阅读(307) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 叽叽喳喳,嘻嘻哈哈 Powered by .NET 9.0 on Kubernetes