- 论坛徽章:
- 0
|
我把squid.conf里面的规则都改了为什么还是不行。
附图 求解
http_port 3128 transparent
cache_mem 256 MB
dns_nameservers 196.196.0.8
maximum_object_size_in_memory 2 MB
memory_replacement_policy heap LFUDA
cache_replacement_policy heap LFUDA
cache_dir ufs /home/cache 5000 32 512
error_directory /usr/local/squid/share/errors/Simplify_Chinese
#acl my_pc 196.196.0.200
#acl nocache urlpath_regex cookie.*\.php *\.jsp *\.asp *\.pl *\.cgi
#no_cache deny nocache
#acl badurls dstdomain -i www.xunlei.com www.gougou.com www.flashget.com www.flashget.net www.soso.com
#http_access deny badurls
#acl badkeywords url_regex -i xunlei.com gougou.com flashget.com flashget.net soso.com
#http_access deny badkeywords
#acl audio urlpath_regex -i .torrent$ .avi$ .mp3$ .mp4$
#http_access deny audio
#acl badfiles urlpath_regex -i .swf$ .flv$
#http_access deny badfiles
#acl download urlpath_regex -i \.mp3$ \.avi$ \.rvmb$ \.mpe$ \.swf$ \.flv$
####acl download urlpath_regex -i \.zip$ \.mp3$ \.ra$ \.avi$ \.rar$ \.rvmb$ \.mpe$
#http_access deny download
acl localhost src 196.196.0.0/24
http_access allow localhost
http_access allow all
#http_access deny all
acl safe port 80 3128
http_access allow safe
cache_effective_user squid
cache_effective_group squid
icp_port 0
cache_mgr worldrestart@yahoo.com.cn
acl OverConnLimit maxconn 16
http_access deny OverConnLimit
acl conncount maxconn 5
visible_hostname 196.196.0.8
icon_directory /usr/local/squid/share/icons
max_open_disk_fds 0
minimum_object_size 1 KB
maximum_object_size 20 MB
cache_swap_low 90
cache_swap_high 95
access_log /usr/local/squid/var/logs/access.log squid
cache_log /usr/local/squid/var/logs/cache.log squid
cache_store_log none
emulate_httpd_log on
cache_dns_program /usr/local/squid/libexec/dnsserver
dns_children 80
dns_nameservers 196.196.0.8
###refresh_pattern -i \.jpg$ 30 50% 4320 reload-into-ims
###refresh_pattern -i \.png$ 30 50% 4320 reload-into-ims
refresh_pattern -i \.htm$ 0 20% 1440
refresh_pattern -i \.html$ 0 20% 1440
refresh_pattern -i . 5 25% 2880
###refresh_pattern . 0 20% 4320 override-expire override-lastmod reload-into-ims ignore-reload
acl buggy_server url_regex ^http://.... http://
broken_posts allow buggy_server
###acl apache rep_header Server ^Apache
####broken_vary_encoding allow apache
request_entities off
###header_access header allow all
relaxed_header_parser on
client_lifetime 120 minute
###cache_peer 196.196.0.8 parent 80 0 no-query default multicast-responder no-netdb-exchange
###cache_peer_domain 196.196.0.8
hostname_aliases 196.196.0.8
#error_directory /usr/local/squid/share/errors/Simplify_Chinese
always_direct allow all
ignore_unknown_nameservers on
coredump_dir /var/log/squid
half_closed_clients off
buffered_logs on
|
|