在remap.config里增加如下配置:
map http://localhost/cache-internal/ http://{cache-internal}
map http://localhost/cache/ http://{cache}
map http://localhost/stat/ http://{stat}
map http://localhost/test/ http://{test}
map http://localhost/hostdb/ http://{hostdb}
map http://localhost/net/ http://{net}
map http://localhost/http/ http://{http}
执行如下命令,启用http_ui的选项:
traffic_line -s proxy.config.http_ui_enabled -v 3
traffic_line -s proxy.config.http.enable_http_info -v 1
让配置生效:
traffic_line -x
测试:在浏览器里面输入以下地址:
http://localhost/cache-internal/
http://localhost/cache/
转载于:https://blog.51cto.com/chenpiaoping/1341850