At least when you compile Squid, you should add the -disable-interface-dns compilation option, otherwise you will not be used. [root @ it800 /] # more /usr/local/squid/etc/squid.confhttp_port 192.168.33.10:800icp_port 0hieRchy_stoplist cgi-bin?
ACL Query URLPATH_REGEX CGI-BIN /? NO_CACHE DENY QUERY
Cache_mem 48 mbcache_swap_low 90cache_swap_high 95cache_dir ufs / usr / local / squid / var / cache 100 16 256emulate_httpd_log online_ip_on_direct onhosts_file / etc / hosts
Auth_Param Basic Children 5AUTH_PARAM Basic CredentialSttl 2 HoursRefresh_pattern ^ ftp: 1440 20% 10080Refresh_pattern ^ Gopher: 1440 0% 1440Refresh_pattern. 0 20% 4320
acl all src 0.0.0.0/0.0.0.0#acl localhost src 127.0.0.1/255.255.255.255#acl to_localhost dst 127.0.0.0/8acl accPort port 800acl accProto proto HTTP FTPacl accHostA dstdomain .dxjy.orgacl accHostB dstdomain .it800.biz # http_access allow localhost all to_localhost # http_access allow mynet Tomynet
HTTP_ACCESS ALLOW ACCPROTO Accport Acchosthttp_access Allow AccProto Accport Acchostb # http_reply_access allow all # http_access allow allhttp_access deny all
cache_effective_user squidcache_effective_group squid # visible_hostname www.it800.bizhttpd_accel_host 127.0.0.1 # httpd_accel_host 192.168.33.12 # httpd_accel_host c.it800.bizhttpd_accel_port 800httpd_accel_single_host onhttpd_accel_with_proxy offhttpd_accel_uses_host_header on
Error_Directory / usr / local / squid / share / errors / simplify_chineseuri_whitespace strip
Cache_access_log /usr/local/squid/var/logs/access.log
# Support MRTG traffic statistics ACL SNMPPUBLIC SNMP_COMMUNITY PUBLICSNMP_PORT 3401SNMP_ACCESS ALLOW SNMPPUBLIC ALL