Postado originalmente por
xbili
1 - criei /etc/squid
2 - baixei o arquivo thunderv21.tar
3 - descompactei
4 - editei o thunder.conf
$cache_dir = "/var/www/thunder";
$disk_max = 95; // in percent
$cache_scr = "/etc/squid";
$server_ip = "192.168.0.1";
$cache_url = "
http://$server_ip/thunder";
$download_speed = 512; // kbytes
$logadd_on = false;
$redir = "301:"; // keep empty if you need a internal rewriter
$proxy_host = ""; // keep it empty if you dont need proxy
$proxy_port = "3128";
//limpeza
$time_delete = 45; // in Day
$disk_limit = 83; // in percent
$list_files = 50; // in number
//advanced params - IF YOU DONT KNOW, DONT TOUCH!
$packet_size = 5900; // in bytes
$packet_delay = 60000; // time in micro second
$download_timeout = 25;
5 - criei o dir /var/www/thunder
6 - chmod 777 -R /var/www/thunder
7 - chmod 777 -R /etc/squid
8 - chown nobody.nogroup -R /etc/squid
9 - chown nobody.nogroup -R /var/www/thunder
10 - squid.conf
url_rewrite_children 50
acl store_rewrite_list dstdomain -i "/etc/squid/thunder.lst"
url_rewrite_access allow store_rewrite_list
url_rewrite_access deny all
url_rewrite_program /etc/squid/loader.php
#nega cache local, para não haver duplicação
acl localcache dstdomain 192.168.0.1
cache deny localcache
11 - agora o apache
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Alias /thunder /var/www/thunder
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/thunder>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Header add THUNDER "THUNDER"
Header set THUNDER "THUNDER"
</Directory>
</VirtualHost>
12 - thunder.lst
.windowsupdate.com
.orkut.com
Feito isso
restarte no squid
restarte no apache
Ele cria as pastas dentro de /var/www/thunder normal
so que os arquivos sempre com 0bytes
unicos arquivos que nao tem tamanho 0
ex.: -rw-rw-rw- 1 nobody nogroup 0 2009-08-10 21:29 1249950599_0000000000_0000000000_000000000000000_windows6.0-kb948610-v6001-x86_2131a4772b5a652f4b84b956c5f4a0154fb387e6.cab
e na pasta inf
que ficam todo com 70bytes
-rw-rw-rw- 1 nobody nogroup 70 2009-08-10 21:29 windows6.0-kb948609-v6001-x86_a758da444839a36c0e366e638c9044f50c257cd6.cab
Ja tentei de tudo
nao tem explicacao esses arquivos desta forma !