Actuellement, quand je regarde le access.log de mon squid, je vois ceci :
Code :
- 1227784498.840 212 192.168.1.2 TCP_MISS/200 12985 GET http://www.bashfr.org/ - DIRECT/212.85.158.124 text/html
- 1227784505.076 211 192.168.1.2 TCP_MISS/200 12963 GET http://www.bashfr.org/ - DIRECT/212.85.158.124 text/html
- 1227784505.805 211 192.168.1.2 TCP_MISS/200 13002 GET http://www.bashfr.org/ - DIRECT/212.85.158.124 text/html
- 1227784506.451 212 192.168.1.2 TCP_MISS/200 12998 GET http://www.bashfr.org/ - DIRECT/212.85.158.124 text/html
- 1227784507.106 212 192.168.1.2 TCP_MISS/200 13015 GET http://www.bashfr.org/ - DIRECT/212.85.158.124 text/html
|
Hors je comprends pas, c'est du simple html, pas dynamique pour un sous, pourquoi je n'ai pas de "TCP_HIT" des la deuxieme demande ?
Mon fichier de configuration est le suivant :
Code :
- 1 http_port 3128
- 2 icp_port 0
- 3 htcp_port 0
- 4 visible_hostname squid
- 5 cache_mgr admin@********
- 6 cache_effective_user proxy
- 7 cache_effective_group proxy
- 8 cache_dir ufs /var/spool/squid3 50000 32 512
- 9 access_log /var/log/squid3/access.log squid
- 10 cache_log /var/log/squid3/cache.log
- 11 cache_store_log /var/log/squid3/store.log
- 12 cache_swap_low 90
- 13 cache_swap_high 95
- 14 ipcache_low 90
- 15 ipcache_high 95
- 16 maximum_object_size 8192 kb
- 17 minimum_object_size 0
- 18 maximum_object_size_in_memory 300 kb
- 19 ipcache_size 4096
- 20 fqdncache_size 4096
- 21 acl manager proto cache_object
- 22 acl localhost src 127.0.0.1/255.255.255.255
- 23 acl to_localhost dst 127.0.0.0/8
- 24 acl SSL_ports port 443
- 25 acl Safe_ports port 80 # http
- 26 acl Safe_ports port 21 # ftp
- 27 acl Safe_ports port 443 # https
- 28 acl Safe_ports port 70 # gopher
- 29 acl Safe_ports port 210 # wais
- 30 acl Safe_ports port 1025-65535 # unregistered ports
- 31 acl Safe_ports port 280 # http-mgmt
- 32 acl Safe_ports port 488 # gss-http
- 33 acl Safe_ports port 591 # filemaker
- 34 acl Safe_ports port 777 # multiling http
- 35 acl CONNECT method CONNECT
- 36 acl LocalNet src 192.168.0.0/16
- 37 http_access allow manager localhost
- 38 http_access deny manager
- 39 http_access deny !Safe_ports
- 40 http_access deny CONNECT !SSL_ports
- 41 http_access allow localhost
- 42 http_access allow LocalNet
- 43 http_access deny all
- 44 hierarchy_stoplist cgi-bin ?
- 45 cache allow all
- 46 acl QUERY urlpath_regex cgi-bin \?
- 47 cache deny QUERY
- 48 negative_ttl 30 minutes
- 49 client_lifetime 12 hours
- 50 logfile_rotate 5
- 51
- 52 refresh_pattern ^ftp: 1440 20% 10080
- 53 refresh_pattern ^gopher: 1440 0% 1440
- 54 refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200
- 55 refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000
- 56 refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200
- 57 refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
- 58 refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
- 59 refresh_pattern . 0 40% 40320
|
Merci d'avance pour votre aide
P.S : les numéros de lignes sont de vim, pas du fichier de conf