|
最初是有的,后来不知怎么的就没有
---squid.conf 内容-----------------------------
http_port 8080
icp_port 0
#hierarchy_stoplist cgi-bin ?
#acl QUERY urlpath_regex cgi-bin ?
#no_cache deny QUERY
redirect_program /usr/bin/squidclam
redirect_children 15
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern .gif$ 10080 100% 43200 override-expire
refresh_pattern .jpg$ 10080 100% 43200 override-expire
refresh_pattern . 960 90% 43200 reload-into-ims
cache_mem 128 MB
cache_swap_low 70
cache_swap_high 85
maximum_object_size 2048 KB
cache_dir ufs /var/cache/squid/ 1200 16 256
cache_access_log /var/cache/squid/logs/access.log
cache_log /var/cache/squid/logs/cache.log
#dns_nameservers 210.52.149.2 210.52.207.2
#dns_nameservers 210.53.31.2 210.52.149.2 202.101.103.55 222.47.62.22 211.98.4.1 218.85.157.99
acl all src 0.0.0.0/0.0.0.0
acl bt urlpath_regex \.torrents$ \.rmvb$ \.rm$ \.avi$
#acl web url_regex tk4479.com
acl SSL_ports port 443 563
acl Safe_ports port 80 21 70 53
acl Safe_ports port 443 563
# wais
acl Safe_ports port 1025-65535
# unregistered ports
acl CONNECT method CONNECT
acl camp dstdomain 192.168.1.4 192.168.1.6
always_direct allow camp
redirector_access deny SSL_ports
http_access deny bt
#http_access deny web
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
http_reply_access allow all
icp_access allow all
forwarded_for off
#
cache_effective_user squid
cache_effective_group squid
#
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on |
|