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