htpasswd -c /etc/squid/squid_passwd www
2, [root@localhost ~]# vim /etc/squid/squid.conf
a, Add this to the auth_param section of squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
b, add this line in the buttom of acl
acl ncsa_users proxy_auth REQUIRED
c, add this line in the top of http_access
http_access allow ncsa_users
No comments:
Post a Comment