配置
visible_hostname 127.0.0.1
http_port 80 accel vhost vport
cache_mem 256 MB
maximum_object_size_in_memory 2048 KB
memory_replacement_policy lru

cache_dir ufs /var/spool/squid 20480 16 256
access_log /var/log/squid/access.log
max_open_disk_fds 0

minimum_object_size 0 KB

maximum_object_size 32768 KB
#logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h""%{User-Agent}>h" %Ss:%Sh
cache_peer www.dj19.com parent 80 0 no-query no-query originserver
http_access allow all
cache_effective_user nobody

cache_effective_group nobody

cache_mgr [zifu.199s0@163.com](mailto:zifu.199s0@163.com)

#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$ 360 50% 2880

refresh_pattern -i \.js$ 1440 50% 2880

refresh_pattern -i \.html$ 720 50% 1440

refresh_pattern -i \.jpg$ 1440 90% 2880

refresh_pattern -i \.gif$ 1440 90% 2880

refresh_pattern -i \.swf$ 1440 90% 2880

refresh_pattern -i \.jpg$ 1440 50% 2880

refresh_pattern -i \.png$ 1440 50% 2880

refresh_pattern -i \.bmp$ 1440 50% 2880

refresh_pattern -i \.doc$ 1440 50% 2880

refresh_pattern -i \.ppt$ 1440 50% 2880

refresh_pattern -i \.xls$ 1440 50% 2880

refresh_pattern -i \.pdf$ 1440 50% 2880

refresh_pattern -i \.rar$ 1440 50% 2880

refresh_pattern -i \.zip$ 1440 50% 2880

refresh_pattern -i \.txt$ 1440 50% 2880

cache_peer www.dj19.com parent 80 0 no-query no-query originserver 后端如果是独立IP就可以 要是反别人的站就不行 0-0 望各位指点一下 谢谢