Hi,

I want to cache some url based on its keyword of the url.  So I refer to the 
cacheurl from 
https://docs.trafficserver.apache.org/en/latest/reference/plugins/cacheurl.en.html.
  But I had the following questions after I read the description.

1. Is the cacheurl built by default ? The website said "This plugin is only 
built if the configure option --enable-experimental-plugins”.  But I had the 
cacheurl.so available under my libexec/trafficserver 
(/home/ats/test/local/trafficserver-5.0.1/libexec/trafficserver).  So I think 
it was built by default in 5.0.1, right?


2. Where is the cacheurl.config file located?
The website said “ Create a cacheurl.config file in the plugin directory with 
the url regex patterns to match”.  But there is no plugin folder under my 
installed directory.  Should I put the cacheurl.config under the folder same as 
cacheurl.so lacerated ? (i.e. 
/home/ats/test/local/trafficserver-5.0.1/libexec/trafficserver)


3. What is the correct reg url for my links ( itag and id are keywords)?
My url for example
1. 
http://10.201.12.17/videoplayback?Body-Bytes=15000001&clen=101715833&itag=139&range=0-15000000&id=ZZZZccccddddeee15952&aaa?Transaction-Profile=YT_100MB
2. 
http://10.201.12.32/videoplayback?Body-Bytes=5000000&clen=101717619&itag=138&range=15000001-20000000&id=ZZZZccccddddeee16232&aaa?Transaction-Profile=YT_100MB

Is the following regurl correct?
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}/videoplayback?Body-Bytes=\?.*\&;(itag=[0-9]*).*\&(id=[0-9a-zA-Z]*).*
           http://www.myvideo.com/$1&$2


Thank you!

Regards

Jay

http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}[^&]*/f4v/.*id=tudou.itemid\=([0-9]*).*
 http://www.tudou.com/$1
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}[^&]*/flv/.*id=tudou.itemid\=([0-9]*).*
 http://www.tudou.com/$1
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}/youku/.*/(.*-.*-.*-.*-[^?]*)(.*)
 http://www.youku.com/$1
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}/sohu/[0-9]*/[0-9]*/[0-9]*/(.*).mp4?key=.*
 http://tv.sohu.com/$1.mp4
http://.*\..*\..*\..*/.*\.com/flvdownload/[[:digit:]]{1,3}/[[:digit:]]{1,3}/([^?]*)(.*)
 http://www.56.com/$1
http://[[:digit:]]{1,3}/mp4files/.*/.*\.com/images/tuiguang/[[:digit:]]{6,6}/(.*\.mp4)
 http://www.56.com/$1
http://.*\..*\.com/images/tuiguang/([[:digit:]]{6,6})/(.*\.mp4) 
http://www.56.com/tuiguang/$1/$2
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}/mov.bn.netease.com/.*/.*/.*/.*/.*/([^?]*)(.*)
 http://v.163.com/$1
http://[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}/.*-.*-.*/.*/cemov.bn.netease.com/.*/.*/.*/.*/.*/([^?]*)(.*)
 http://v.163.com/$1


Regards
Jay

Reply via email to