[squid-users] SQUID store_url_rewrite

From: Ghassan Gharabli <sounarose_at_googlemail.com>
Date: Sun, 29 May 2011 15:22:15 +0300

Hello,

I was trying to cache this website :

http://down2.nogomi.com.xn55571528exgem0o65xymsgtmjiy75924mjqqybp.nogomi.com/M15/Alaa_Zalzaly/Atrak/Nogomi.com_Alaa_Zalzaly-3ali_Tar.mp3

How do you cache or rewrite its uRL to static domain! :
down2.nogomi.com.xn55571528exgem0o65xymsgtmjiy75924mjqqybp.nogomi.com

Does that URL matches this REGEX EXAMPLE or who can help me match this
Nogomi.com CDN?

        #generic http://variable.domain.com/path/filename."ex", "ext" or "exte"
        #http://cdn1-28.projectplaylist.com
        #http://s1sdlod041.bcst.cdn.s1s.yimg.com
} elsif (m/^http:\/\/(.*?)(\.[^\.\-]*?\..*?)\/([^\?\&\=]*)\.([\w\d]{2,4})\??.*$/)
{
       @y = ($1,$2,$3,$4);
       $y[0] =~
s/([a-z][0-9][a-z]dlod[\d]{3})|((cache|cdn)[-\d]*)|([a-zA-A]+-?[0-9]+(-[a-zA-Z]*)?)/cdn/;
       print $x . "storeurl://" . $y[0] . $y[1] . "/" . $y[2] . "." .
$y[3] . "\n";

I also tried to study more about REGULAR EXPRESSIONS but their
examples are only for simple URLS .. I really need to study more about
Complex URL .

Thanks for your help

Regards,
Ghassan
Received on Sun May 29 2011 - 12:22:22 MDT

This archive was generated by hypermail 2.2.0 : Mon May 30 2011 - 12:00:05 MDT