whistle匹配模式

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
相關文章
相關標籤/搜索