這是本文件的舊版!
squid
install
pkg install squid sysrc squid_enable="YES"
config
/usr/local/etc/squid/squid.conf
auth_param digest realm proxy auth_param digest program /usr/local/libexec/squid/digest_file_auth -c /usr/local/etc/squid/password acl users proxy_auth REQUIRED http_access allow users http_port 3128 # Leave coredumps in the first cache dir coredump_dir /var/squid/cache # # Add any of your own refresh_pattern entries above these. # refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320
apache-htdigest -c /usr/local/etc/squid/passwords realm username # or htdigest if apache-htdigest is not found
check config
squid -f /usr/local/etc/squid/squid.conf -k parse