cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
cache_effective_user squid
cache_effective_group squid
visible_hostname feng-squid
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic credentialsttl 2 hours
acl auth_user proxy_auth REQUIRED
http_access allow auth_user
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
本文转自 ppabc 51CTO博客,原文链接:http://blog.51cto.com/ppabc/990941