trafficserver开启ui配置

  1. 在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} 
  2. 执行如下命令,启用http_ui的选项:

    traffic_line -s proxy.config.http_ui_enabled -v 3

    traffic_line -s proxy.config.http.enable_http_info -v 1

  3. 让配置生效:

    traffic_line -x


  4. 测试:在浏览器里面输入以下地址:

    http://localhost/cache-internal/

    http://localhost/cache/


  http://localhost/stat/

  http://localhost/test/

  http://localhost/hostdb/

  http://localhost/net/

 
 

  http://localhost/http/

你可能感兴趣的:(TrafficServer,开启ui配置)