ThunderCache - Desde a Instalação até a Configuração Final! Por BillGates
Para quem estiver seguindo nosso tópico,é provavel que muitos não estejam com o thunder fazendo cache do:
- Avast
- Msn/Vídeo
"Dicas retiradas do THUNDERCACHE.ORG " Todos os créditos aos seus devidos autores!!!
O avast.com.php que acompanha o arquivo thundercachev21.tar ,não esta atualizado,creio que devido a correria do pessoal de la,acabaram esquecendo desse detalhe.
Para resolver:
Abra o seu avast.com.php,delete tudo o que ha dentro e cole isto:
Código :
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* (C) Copyright 2008-2009 Thunder Cache
* Plugin Avast
* Rewrite urls from avast.com
* Need to put ".avast.com" in squid.conf in line "acl store_rewrite_list dstdomain"
*
* @author Bruno Benatto <[email protected]>
*/
include_once("functions.php");
$domain = "avast";
logadd("IN:($ip)$url");
$black_list = array (
'servers.def.vpu',
'servers.def.vpu.stamp'
);
if ( (preg_match("/\.avast\.com\//", $url,$result)) ){
$file = get_filename($url);
$extfile=trim(str_replace('.','',strtolower(substr($file, -4))));
$extfile2=trim(str_replace('.','',strtolower(substr($file, -5))));
if ($file != "" && !in_array($file,$black_list)) {
if($extfile=='vpu') {
check_file($file,$url,$domain);
}else if($extfile2=='stamp') {
check_file($file,$url,$domain);
}else{
print "$url\n";
logadd("OUT:$url ($file)");
} } else { // dont find file, repass url
print "$url\n";
logadd("OUT:$url ($file)");
}
}else{
print "$url\n";
logadd("OUT:$url (dont match)");
}
?>
Salve e feche!
Agora no terminal do seu proxy,digite o seguinte comando:
ln -s /etc/squid/avast.com.php 217.178.php
Isso ira criar um link simbólico
Ok... Seu avast ja estara pronto para fazer cache...
Quanto ao MSN/Vídeo basta apenas alterar o nome:
esta assim: video.msn.com.php
então...
deixe assim: msn.com.php
Ok, msn/vídeo cacheando normalmente...
http://img44.imageshack.us/img44/1935/tutorial024.jpg