[squid-users] Re: Youtube Changes

From: syaifuddin <ucok_karnadi_at_yahoo.com>
Date: Tue, 23 Apr 2013 06:19:03 -0700 (PDT)

Amos Jeffries-2 wrote
> How about updating the Squid wiki pages with this recent information?
> reading four pages of dense regex patterns with the odd word or two of
> documentation in the middle is not an great way to spend the evening.
>
> http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube is a
> collaborative effort between the people interested fixing YT
> cacheability problems.
>
> Please also correct those squid.conf settings which are documented. The
> regex patterns added to squid.conf do not need .* or .*$ on the ends.
>
> # acl yutub url_regex -i .*youtube\.com\/.*$
> # acl yutub url_regex -i .*youtu\.be\/.*$
>
> acl yutub url_regex -i youtu(be\.com|\.be)\/
>
> or maybe even:
> acl yutub dstdomain .youtube.com .youtu.be
>
> # acl redirec urlpath_regex -i
> .*&redirect_counter=1&cms_redirect=yes
> # acl redirec urlpath_regex -i .*&ir=1&rr=12
>
> acl redirec urlpath_regex -i &redirect_counter=1&cms_redirect=yes
> &ir=1&rr=12
>
> # acl reddeny url_regex -i
> c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
> # acl reddeny url_regex -i
> c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
>
> acl reddeny url_regex -i
> c\.youtube\.com\/videoplayback.*(redirect_counter=1|cms_redirect=yes)
>
> Amos

thank's amos, i will correc ACL, and i'm sorry if my english so bad. because
i still learn english also squid

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Youtube-Changes-tp4659599p4659615.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Tue Apr 23 2013 - 13:19:05 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 23 2013 - 12:00:05 MDT