Re: [squid-users] Re: Youtube Changes

From: Odhiambo Washington <odhiambo_at_gmail.com>
Date: Wed, 24 Apr 2013 17:14:26 +0300

This doesn't seem to work for me - so far. Here is what I have added
to squid.conf:

strip_query_terms off
acl yutub dstdomain .youtube.com .youtu.be
logformat squid1 %{Referer}>h %ru
access_log /usr/local/squid/logs/yt.log squid1 yutub
acl redirec urlpath_regex -i &redirect_counter=1&cms_redirect=yes &ir=1&rr=12
acl videocache url_regex -i \.(youtu|google).*\.com\/videoplayback
storeurl_access deny redirec
storeurl_access allow videocache
storeurl_rewrite_program /usr/local/etc/squid/scripts/storeurl.pl
storeurl_rewrite_children 1
storeurl_rewrite_concurrency 10
cache deny redirec

refresh_pattern ^.*youtube\.com\.SQUIDINTERNAL.*$ 43200 99% 43200
override-expire ignore-reload ignore-no-cache ignore-private
negative-ttl=0
refresh_pattern
(get_video\?|videoplayback\?|videodownload\?|\.flv\?|\.fid\?) 43200
99% 43200 override-expire ignore-reload ignore-no-cache ignore-private
negative-ttl=0

After making the changes and giving `-k reconfigure` to squid, the
process dies and I get the following on cache.log:

2013/04/24 17:12:26| WARNING: store_rewriter #1 (FD 7) exited
2013/04/24 17:12:26| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
CPU Usage: 0.036 seconds = 0.012 user + 0.024 sys
Maximum Resident Size: 6916 KB
Page faults with physical i/o: 0

My /usr/local/squid/logs/yt.log is empty

On 24 April 2013 16:22, syaifuddin <ucok_karnadi_at_yahoo.com> wrote:
> Odhiambo Washington-4 wrote
>> I am following this thread closely since inception and wanted to test
>> this on my squid 2.7.9.
>> However I am getting a problem with the second refresh_pattern regex.
>>
>> 2013/04/24 15:37:36| parse_refreshpattern: Unknown option
>> '(get_video\?|videoplayback\?|videodownload\?|\.flv\?|\.fid\?)':
>> ignore-must-revali......
>
>
> im so sorry. i forgot to remove refresh_pattern option.
>
> here correct refresh_pattern
>
>
>> refresh_pattern
>> (get_video\?|videoplayback\?|videodownload\?|\.flv\?|\.fid\?) 43200 99%
>> 43200 override-expire ignore-reload ignore-no-cache ignore-private
>> negative-ttl=0
>
>
>
>
>
> --
> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Youtube-Changes-tp4659599p4659626.html
> Sent from the Squid - Users mailing list archive at Nabble.com.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
"I can't hear you -- I'm using the scrambler."
Received on Wed Apr 24 2013 - 14:15:13 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 24 2013 - 12:00:15 MDT