免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1497 | 回复: 4
打印 上一主题 下一主题

求教squid问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-24 12:11 |只看该作者 |倒序浏览
1.squid设好之后,有的网站解析失败,而用iptables 直接出就没有问题,
2.squid有时侯变得很慢,不知道是什么原因.

  恳请赐教.谢谢!  

  squid设置如下:


http_port 192.168.0.11:808
cache_mem 20 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size = 1024
cache_dir ufs /etc/squid/var/cache 100 16 256
cache_access_log /etc/squid/var/logs/access.log
cache_log /etc/squid/var/logs/cache.log
ftp_user squid@
acl all src 0.0.0.0/0.0.0.0
acl ourclient src 192.168.0.0/24
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
memory_pools on
memory_pools_limit 256MB

acl Safe_ports port 21 #ftp
acl Safe_ports port 23
acl Safe_ports port 25
acl Safe_ports port 110
acl Safe_ports port 443 563 #ftp
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 480
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access allow ourclient
http_access allow Safe_ports
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


http_access deny all
icp_access allow all

论坛徽章:
0
2 [报告]
发表于 2006-04-24 13:12 |只看该作者
dns_nameservers 202.99.160.68 202.99.168.8
visible_hostname domain.com
httpd_accel_uses_host_header on
httpd_accel_host virtual

论坛徽章:
0
3 [报告]
发表于 2006-04-24 13:18 |只看该作者
谢谢! 我试试先.

论坛徽章:
0
4 [报告]
发表于 2006-04-24 13:32 |只看该作者
不行,还是不能解析错误提示如下:


ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://www.tiexue.net/ItemsArchive/6/21/2479.htm

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 Tue, 07 Dec 1999 12:21:31 GMT by www.hope.cn (squid/2.5.STABLE10)

论坛徽章:
0
5 [报告]
发表于 2006-04-24 13:37 |只看该作者
把httpd_accel_host virtual注释掉刚才可以了,没有了错误提示.别的还没有试.不知道什么原因.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP