|
|
我的配置文件如下:
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic program /usr/bin/ncsa_auth /usr/etc/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server on Cupid
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl needauth proxy_auth REQUIRED
acl our_networks src 210.29.101.0/24
http_access allow needauth
http_access allow our_networks
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname cupidsd.hohai.local
err_html_text "please contact info lab cupid"
acl local dst 210.29.0.0/16
always_direct allow local
uri_whitespace allow
coredump_dir /var/spool/squid
我用的是NCSA认证,用htpasswd -c /usr/etc/passwd guest已经建立了用户,可以看到:
[root@localhost root]# cat /usr/etc/password
guest:XcQGOeAkOOnwc
whb:MSp3MhOM.t.3s
cupid 0FhB/J0i7/eE
zbz:E1bC1ue2jpuPI
[root@localhost root]# ls /usr/bin|grep ncsa
ncsa_auth
可是IE每次都是要求我弹出对话框要求我输入用户名、密码,我输了几次都没有用?(而且我还用了几个用户)最后告诉我:访问被拒绝,请与管理员联系。靠,我就是啊。
为什么呢?狂郁闷! |
|