标签:
#yum install pkgconfig libtool gcc make openssl tcl expat pcre pcre-devel libcap flex hwloc lua curses curl tcl-devel
#wget http://apache.fayea.com/trafficserver/trafficserver-5.3.2.tar.bz2
#tar xvf trafficserver-5.3.2.tar.bz2 #cd trafficserver-5.3.2 #./configure --prefix=/usr/local/ats #make && make install
map http://domain.com http://113.107.101.126:8111/
/ats_cache 20G
url_regex=192.168.2.105:8112/news.php\?id=.* ttl-in-cache=2h cache-responses-to-cookies=4
CONFIG proxy.config.http_ui_enabled INT 3 CONFIG proxy.config.http.enable_http_info INT 1
map http://localhost/cache-internal/ http://{cache-internal} map http://localhost/cache/ http://{cache} @action=allow @src_ip=127.0.0.1 map http://localhost/stat/ http://{stat} @action=allow @src_ip=127.0.0.1 map http://localhost/test/ http://{test} @action=allow @src_ip=127.0.0.1 map http://localhost/hostdb/ http://{hostdb} @action=allow @src_ip=127.0.0.1 map http://localhost/net/ http://{net} @action=allow @src_ip=127.0.0.1 map http://localhost/http/ http://{http} @action=allow @src_ip=127.0.0.1
<LogFormat> <Name = "access"/> <Format = "%<chi> %<cqtq> %<ttms> %<{X-Forwarded-For}cqh> %<crc>/%<pssc> %<pscl> %<cqhm> %<cquuc> %<cqhv> %<phr>/%<pqsi> %<psct> \"%<{Referer}cqh>\" \"%<{User-Agent}cqh>\" %<shn> %<sscl>"/> </LogFormat> <LogObject> <Format = "access"/> <Filename = "access"/> </LogObject>
CONFIG proxy.config.log.squid_log_enabled INT 0 CONFIG proxy.config.log.custom_logs_enabled INT 1
CONFIG proxy.config.http.insert_response_via_str INT 2
标签:
原文地址:http://www.cnblogs.com/itfenqing/p/5934936.html