加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

whistle匹配模式

发布时间:2020-12-14 05:34:57 所属栏目:百科 来源:网络整理
导读:a. 基本匹配: # 匹配域名www.qq.com下的所有请求www.qq.com operatorURI# 匹配域名www.qq.com下的所有http请求http://www.qq.com operatorURI# 匹配域名www.qq.com下的所有https请求https://www.qq.com operatorURI# 限定域名的端口号www.qq.com:8888 operat

a. 基本匹配:

# 匹配域名www.qq.com下的所有请求
www.qq.com operatorURI

# 匹配域名www.qq.com下的所有http请求
http://www.qq.com operatorURI

# 匹配域名www.qq.com下的所有https请求
https://www.qq.com operatorURI

# 限定域名的端口号
www.qq.com:8888 operatorURI # 8888端口

#限定具体路径
http://www.qq.com/xxx operatorURI

# 精确匹配 , 以$符号开头
$http://www.qq.com/xxx operatorURI

b.正则匹配:

/http://(.*)/  log://

c. 通配符匹配

# 通配符匹配,以 ^ 开头(如果需要限制结束位置可以用 $),* 为通配符

^www.example.com/test/***   operatorURI


# 通配域名匹配:
# 匹配二级域名以 .com 结尾的所有url,如: test.com,abc.com,但不包含 *.xxx.com
*.com   operatorURI
//*.com  operatorURI


# 通配路径匹配:
# 对所有域名对应的路径 protocol://a.b.c/xxx[/yyy]都生效
*/  operatorURI
*/xxx  operatorURI

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读