ui界面检测缓存状态

来源:互联网 发布:广州大塘附近淘宝培训 编辑:程序博客网 时间:2024/06/08 01:32
1.  主配置文件records.config
  加入:CONFIG proxy.config.http_ui_enabled INT 3
            CONFIG proxy.config.http.enable_http_info INT 1      (可选项)

remap.config:
   map http://www.test100.com/ http://www.test100.com/
   map http://www.ui.com/  http://{cache} @action=allow  @src_ip=192.168.153.1

parent.config:
   dest_domain=www.test100.com parent="192.168.215.3:80"  round_robin=strict

注意:这里如果在remap里map的映射设置的是ip,在使用ui工具时查询时必须输入ip+path来查询,因为缓存时以ip加文件名为key缓存的,

2.打开浏览器,配置好host  (www.ui.com)
    访问www.ui.com,会出现
        Lookup url
        Delete url
        Regex lookup
        Regex delete
        Regex invalidate

先访问test100让其缓存,然后点击各个可查看缓存信息,Lookup url  输入url:http://www.test100.com/test2.html,即可查看信息
  点击delete url 可以删除该缓存中的 url


0 0