p2pweb.jpg
Authentification | S'enregistrer 
English
 
Imprimer la page     Accueil  /  Le Projet  /  Les composants  /  Caches Web
  Architecture
  Les composants
  Load balancing global
  Web primaires
  Web miroirs
  Suivi de performance
  Caches Web
  Disponibilité

Caches Web

Principe

On utilise des serveurs caches SQUID configurés en reverse proxy.

Configuration

Configuration basique des noeuds squid, en partage de charge pointant vers le site réel : 80.87.96.14
Les autres paramètres sont ceux par défaut.


http_port 80
cache_mem 32 MB
cache_dir ufs /usr/local/squid/var/cache 4096 16 256
refresh_pattern \.(gif|jpg|jpeg)$ 600 80% 86400
refresh_pattern \.(xbm|xpm|ico|tiff)$ 600 80% 86400
refresh_pattern \.(au|snd|wav|ra|mid)$ 600 80% 86400
refresh_pattern \.(qt|mov|avi|mpeg)$ 600 80% 86400
refresh_pattern \.(iv|wrl|vrml)$ 600 80% 86400
refresh_pattern \.(Z|gz)$ 600 80% 86400
refresh_pattern \.(hqx|bin)$ 600 80% 86400
refresh_pattern \.(tar|zip)$ 600 80% 86400
refresh_pattern ^http:// 30 50% 86400
refresh_pattern ^ftp:// 30 50% 86400
refresh_pattern . 30 30% 43200
#
# les proxys pointent uniquement vers les sites du reseau mediaport
#
acl mediaport_net dst 80.87.96.14
acl acceleratedPort port 80

http_access allow mediaport_net acceleratedPort

cache_effective_user nobody
httpd_accel_host virtual
httpd_accel_port 0
httpd_accel_single_host off
httpd_accel_with_proxy off
httpd_accel_uses_host_header on