visible_hostname img1.mojily.com visible_hostname img2.mojily.com
http_port 8080 vhost vport
cache_mem 512 MB maximum_object_size_in_memory 10240 KB memory_replacement_policy lru cache_dir ufs /usr/local/squid/var/cache 512 16 256 #max_open_disk_fds 0 minimum_object_size 0 KB maximum_object_size 15 MB
cache_peer img1.mojily.com parent 80 0 no-query no-digest originserver name=img1 cache_peer img2.mojily.com parent 80 0 no-query no-digest originserver name=img2
cache_peer_domain img1 img1.mojily.com
cache_peer_domain img2 img2.mojily.com
#cache_peer_access img1 allow all http_access allow all
cache_effective_user nobody cache_effective_group nobody
logformat combined %>a %ui %un [%{%d/%b/%Y:%H:%M:%S +0000}tl] "%rm %ru HTTP/%rv" %<Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /usr/local/squid/var/logs/access.log combined cache_log /usr/local/squid/var/logs/cache.log cache_store_log /usr/local/squid//var/logs/store.log
#coredump_dir /usr/local/squid/var/cache #refresh_pattern ^ftp: 60 20% 10080 #refresh_pattern ^gopher: 60 0% 1440 #refresh_pattern ^gopher: 60 0% 1440 #refresh_pattern . 0 20% 1440 refresh_pattern -i \.css$ 0 70% 86400 reload-into-ims refresh_pattern -i \.js$ 0 70% 86400 reload-into-ims refresh_pattern -i \.html$ 0 70% 86400 reload-into-ims refresh_pattern -i \.gif$ 0 70% 86400 reload-into-ims refresh_pattern -i \.swf$ 0 70% 86400 reload-into-ims refresh_pattern -i \.jpg$ 0 70% 86400 reload-into-ims refresh_pattern -i \.png$ 0 70% 86400 reload-into-ims refresh_pattern -i \.bmp$ 0 70% 86400 reload-into-ims refresh_pattern -i \.doc$ 0 70% 86400 reload-into-ims refresh_pattern -i \.ppt$ 0 70% 86400 reload-into-ims refresh_pattern -i \.xls$ 0 70% 86400 reload-into-ims refresh_pattern -i \.pdf$ 0 70% 86400 reload-into-ims refresh_pattern -i \.rar$ 0 70% 86400 reload-into-ims refresh_pattern -i \.zip$ 0 70% 86400 reload-into-ims refresh_pattern -i \.txt$ 0 70% 86400 reload-into-ims
logfile_rotate 5 memory_pools on memory_pools_limit 0 client_db off #always_direct allow all error_directory /usr/local/squid/share/errors/ko-kr uri_whitespace deny high_response_time_warning 1500 store_dir_select_algorithm least-load |