Squid代理服务器加密码验证

| |
[ 2011/04/14 16:27 | by Sonic ]
需要用到htpasswd,这个是apahe自带。
还需要用到ncsa_auth,这个Squid自带。

sudo htpasswd -c /etc/squid/squid_passwd test
然后在/etc/squid.conf下加入:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd


在acl那堆配置里最后一行加入
acl ncsa_users proxy_auth REQUIRED


在http_access那堆里最上一行加入
http_access allow ncsa_users


Tags: , ,
网摘-网事 | 评论(0) | 引用(0) | 阅读(1681)
Share |
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]