marciovalentin
(usa CentOS)
Enviado em 08/05/2010 - 20:04h
Boa noite!
Instalei o squid 2.7 + thundercache 3 e funcionou tudo perfeito. Só que depois de adicionar as linhas do thundercache no squid, o squid parou de fazer cache do restante das páginas como downloads por exemplo, como posso corrigir isso?
Segue meu squid.conf
=====================================
http_port 3128 transparent
visible_hostname server
#Tamanho da ram utilizada para armazenar páginas
cache_mem 2000 MB
#Tamanho máximo de arquivos na memória
maximum_object_size_in_memory 512 KB
#Otimiza o cache disponibilizando os arquivos mais utilizados
memory_replacement_policy heap LRU
cache_replacement_policy heap LRU
#Tamanho máximo de arquivos no cache do hd
maximum_object_size 1 GB
minimum_object_size 0 KB
#Tamanho do cache do hd
cache_dir aufs /var/spool/squid 20000 32 128
cache_dir aufs /var/spool/squid1 20000 32 128
#Busca direto na origem sem passar por vizinhos de hierarquia
# hierarchy_stoplist cgi-bin ?
#Troca do cache
cache_swap_low 80
cache_swap_high 95
#Arquivo de log
cache_access_log /var/log/squid/access.log
cache_store_log none
#Página de Erros
error_directory /usr/share/squid/errors/Portuguese
#Não armazena conteúdo dinâmico
# acl QUERY urlpath_regex cgi-bin?
# no_cache deny QUERY
#XP Update
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
#Vista Update
refresh_pattern download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
#Office Update
refresh_pattern office.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
#Servidor DNS do squid (resolve caso não tenha dns configurado
dns_nameservers 127.0.0.1/192.168.0.5/200.204.0.10 #/207.68.220.220
#Atualização das páginas
refresh_pattern ^http:\/\/74\.125 86400 20% 86400 override-expire override-lastmod
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#ACL's
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
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# unregistred 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 Safe_ports port 901 #swat
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl redelocal src 10.1.1.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
# Para squid 2.7
# MARCAR PACOTES TOS
zph_mode tos
zph_local 0×30
zph_parent 0
zph_option 136
# redirecionamento thunder 3.x - REGEX
acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
cache deny thunder_lst
cache_peer 127.0.0.1 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
=======================
Obrigado.