- 论坛徽章:
- 0
|
我下了各win 下的SQUID 打算做个简单的代理,配置好后在浏览器上设置代理,出现错误提示:
---------------------------------
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.sgu.edu.cn/
The following error was encountered:
* Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster.
Generated Thu, 11 May 2006 15:29:51 GMT by SquidNT (squid/2.5.STABLE3-NT-CVS)
------------------------------------------------
配置文件如下:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir ufs e:\Squid/cache 100 16 256
cache_access_log e:\Squid/log/access.log
cache_log e:\Squid/log/cache.log
cache_store_log e:\Squid/log/store.log
mime_table e:\Squid/etc/mime.conf
pid_filename e:\Squid/log/squid.pid
ftp_user user@SquidNT
diskd_program e:\Squid/libexec/diskd.exe
unlinkd_program e:\Squid/libexec/unlinkd.exe
pinger_program e:\Squid/libexec/pinger.exe
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ftp: 1440 20Percent 10080
refresh_pattern gopher: 1440 0Percent 1440
refresh_pattern . 0 20Percent 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 MYLAN src 127.0.0.1-127.0.0.1/255.255.255.255
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl me src 192.168.161.251/255.255.255.255
acl qq src 192.168.153.33/255.255.255.255 192.168.153.253/255.255.255.255
http_access allow me qq
http_access allow MYLAN
http_access deny all
http_reply_access allow MYLAN
http_reply_access deny all
icp_access allow MYLAN
icp_access deny all
visible_hostname SquidNT
icon_directory e:\Squid/share/icons
error_directory e:\Squid/share/errors/English
coredump_dir e:\Squid/cache
不知道是什么原因呢?!另外,把http_access deny all 改成http_access allow all 可以上到QQ,但是浏览器错误依然!请各位帮忙了! |
|