You are hereForums / Support / problem with /usr/shaer/videocache/videocache.py

Videocache 1.9.5 is available now. This version improves support for logging and fixes video caching problems for various sites like Vimeo, Break, Tube8 etc due to change in URL patterns. Also, from this version onwards, UrlGrabber has been removed from dependencies. Check Changelog for details. If you have purchased version 1.9.x previously, you can claim free upgrade by contacting using Contact Link. Please mention the email address using which you purchased Videocache. New users proceed to download page right now, secure your copy and enjoy caching :-)

problem with /usr/shaer/videocache/videocache.py


3 replies [Last post]
Offline
Joined: Apr 11 2009
problem with /usr/shaer/videocache/videocache.py
Printer-friendly versionSend to friend

Hello Evrey Body

i am use squid 3.0 and videocache i will config all file conf but i have problem in add this comand in the squid.conf ( /usr/share/videocache/videocache.py ) squid cache is dead after add this comand

This is my all confgrtion
-------------------------
Squid.conf
######################################################
# WELCOME TO SQUID 2
# ------------------
#
http_port 3128 transparent
icp_port 3130
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic credentialsttl 2 hours
ipcache_size 10240
ipcache_low 95
ipcache_high 98
fqdncache_size 16384
cache_dir aufs /var/spool/squid 800000 16 256
coredump_dir /var/spool/squid
visible_hostname Mesho-Alhazeen-Server
cache_mgr mesho_alhazeen@yahoo.com
####################################################################
acl nimda-eml urlpath_regex -i \.eml$
acl nimda-nws urlpath_regex -i \.nws$
acl wml-files urlpath_regex -i \.wml$
acl exe-files urlpath_regex -i \.exe$
acl avi-files urlpath_regex -i \.avi$
acl mp3-files urlpath_regex -i \.mp3$
acl vbx-files urlpath_regex -i \.vb?$
acl mpg-files urlpath_regex -i \.mpg$
acl zip-files urlpath_regex -i \.zip$
acl scr-files urlpath_regex -i \.scr$
acl rm-files urlpath_regex -i \.rm$
acl wav-files urlpath_regex -i \.wav$
acl net-files urlpath_regex -i \.net$
acl com-files urlpath_regex -i \.com$
acl asp-files urlpath_regex -i \.asp$
acl php-files urlpath_regex -i \.php$
acl co-files urlpath_regex -i \.co$
acl org-files urlpath_regex -i \.org$
acl rar-files urlpath_regex -i \.rar$
acl html-files urlpath_regex -i \.html$
acl htm-files urlpath_regex -i \.htm$
acl jpg-files urlpath_regex -i \.jpg$
acl gif-files urlpath_regex -i \.gif$
acl php-files urlpath_regex -i \.php$
acl swf-files urlpath_regex -i \.swf$
acl jv-files urlpath_regex -i \.jv$
acl db-files urlpath_regex -i \.db$
acl cab-files urlpath_regex -i \.cab$
acl aspx-files urlpath_regex -i \.aspx$
####################################################################
acl all src 84.11.138.0/28
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
####################################################################
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow all
icp_access allow all
ie_refresh on
###################################################################
tcp_outgoing_tos 0x20
zph_mode tos
zph_local 0x30
zph_parent 0
####################################################################
#snmp
acl snmppublic snmp_community public
snmp_access allow snmppublic all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0
####################################################################
cache_swap_low 98
cache_swap_high 99
cache_log /var/log/squid/cache.log
emulate_httpd_log off
pid_filename /var/run/squid.pid
mime_table /usr/share/squid/mime.conf
log_fqdn off
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
negative_ttl 2 minutes
half_closed_clients off
read_timeout 15 minutes
client_lifetime 2 hours
pconn_timeout 60 seconds
positive_dns_ttl 60 seconds
negative_dns_ttl 30 seconds
cache_effective_user proxy
cache_effective_group proxy
vary_ignore_expire on
pipeline_prefetch on
reload_into_ims on
snmp_port 3401
client_db on
store_objects_per_bucket 10
store_avg_object_size 13 KB
icon_directory /usr/share/squid/icons
error_directory /usr/share/squid/errors/English
buffered_logs off
logfile_rotate 7
forwarded_for on
icp_hit_stale on
log_icp_queries off
query_icmp on
####################################################################
cache_mem 1500 MB
maximum_object_size 500 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 512 KB
dns_nameservers 83.170.1.240 83.170.1.241 4.2.2.4 4.2.2.1 192.9.9.3
request_header_max_size 10 KB
request_timeout 30 seconds
negative_ttl 5 minutes
connect_timeout 2 minutes
read_timeout 15 minutes
shutdown_lifetime 10 seconds
####################################################################
url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 10
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video
acl videocache_allow_url url_regex -i \.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\.googlevideo\.com\/videoplayback
acl videocache_allow_url url_regex -i \.cache[a-z0-9]?[a-z0-9]?[a-z0-9]?\.googlevideo\.com\/get_video
acl videocache_allow_url url_regex -i proxy\-[0-9][0-9]\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_dom dstdomain v.mccont.com vp.video.google.com dl.redtube.com
acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom
redirector_bypass on
###################################################################
#refresh_pattern for cache sites
#refresh patterns to enable caching of MS windows update
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims override-lastmod
#and some other windows updaters
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern ftp://ftp\.nai\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern http://ftp\.software\.ibm\.com/ 0 80% 20160 reload-into-ims override-lastmod
refresh_pattern cgi-bin 1 20% 2
refresh_pattern \.asp$ 1 20% 2
refresh_pattern \.acgi$ 1 20% 2
refresh_pattern \.cgi$ 1 20% 2
refresh_pattern \.pl$ 1 20% 2
refresh_pattern \.shtml$ 1 20% 2
refresh_pattern \.php3$ 1 20% 2
refresh_pattern \? 1 20% 2
refresh_pattern \.gif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.jpg$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.bom\.gov\.au 30 20% 120 reload-into-ims
refresh_pattern \.html$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \.htm$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \.class$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.zip$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.jpeg$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.mid$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.shtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \.exe$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.thm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.wav$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.txt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.cab$ 10080 90% 560000 reload-into-ims override-lastmod
refresh_pattern \.au$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.mov$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.xbm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.ram$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.avi$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.chtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \.thb$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.dcr$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.bmp$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.phtml$ 480 50% 22160 reload-into-ims override-lastmod
refresh_pattern \.mpg$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.pdf$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.art$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.swf$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.mp3$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.ra$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.spl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.viv$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.doc$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.gz$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.Z$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.tgz$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.tar$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.vrm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.vrml$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.aif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.aifc$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.aiff$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.arj$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.c$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.cpt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.dir$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.dxr$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.hqx$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.jpe$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.lha$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.lzh$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.midi$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.movie$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.mp2$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.mpe$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.mpeg$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.mpga$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.flv$ 10080 90% 56000 reload-into-ims override-lastmod
refresh_pattern \.pl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.ppt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.ps$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.qt$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.qtm$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.ras$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.sea$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.sit$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.tif$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.tiff$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.snd$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern \.wrl$ 10080 90% 43200 reload-into-ims override-lastmod
refresh_pattern ^gopher:// 1440 25% 10080
refresh_pattern ^ftp:// 1440 20% 1440 reload-into-ims override-lastmod
refresh_pattern . 320 40% 56000 reload-into-ims override-lastmod
cache_access_log /var/log/squid/access.log
cache_store_log none
cache_log none
cache allow all
############################################End squid.conf

and the confgrtion in videocache
--------------------------------

#videocache.py

cache_host = 84.11.138.6 my proxy ip

proxy = http://84.11.138.6:3128/

bezt (not verified)

I have same problem after add /usr/share/videocache/videocache.py in my squid.conf,
Can anyone tell me how to solve this problem?
Sory for my bad English

Offline
Joined: Oct 20 2009

hello, I too have had the problem after added to squid.conf / usr / share / VideoCache / videocache.py has blocked the proxy but I solved! :) Give me a whistle if you want the solution.:P

Anonymous (not verified)

how did u solved it??

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available. Secure your copy now by clicking the button below.
No. of Servers?
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 0 users and 70 guests online.