免费注册 查看新帖 |

Chinaunix

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

[proxy] 求救?squid反向代理加速web问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-24 19:50 |只看该作者 |倒序浏览
我在192.168.1.249上装了squid,250上装了resin,在249上的/etc/hosts文件里已经加入了对域名www.typhoon.com的解析192.168.1.250,而且直接http://192.168.1.250能正常访问resin,为什么http://192.168.1.249就不行啊?www.typhoon.com就更不用想了??我的squid.conf文件如下,请高手指点:)
http_port 192.168.1.249:80
icp_port 0
cache_effective_user squid
cache_effective_group squid
visible_hostname cache.typhoon.com
cache_dir aufs /cache 4096 16 256
cache_access_log /usr/local/typhoon/squid/var/logs/cache.log
cache_log /usr/local/typhoon/squid/var/logs/cache.log
cache_mem 250 MB
cache_swap_low 80
cache_swap_high 90
maximum_object_size 2048 KB
# minimum_object_size 16 KB
maximum_object_size_in_memory 50 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_store_log none
cache_replacement_policy lru
memory_replacement_policy lru
request_header_max_size 10 KB
dns_children 30
hosts_file /etc/hosts
refresh_pattern -i .htm 60 50% 120 reload-into-ims
refresh_pattern -i .html 60 50% 120 reload-into-ims
refresh_pattern -i .gif 60 50% 120 reload-into-ims
refresh_pattern -i .swf 60 50% 120 reload-into-ims
refresh_pattern -i .jpg 60 50% 120 reload-into-ims
refresh_pattern -i .jpeg 60 50% 120 reload-into-ims
refresh_pattern -i .png 60 50% 120 reload-into-ims
refresh_pattern . 0 20% 120 reload-into-ims
strip_query_terms off
connect_timeout 1 minute
read_timeout 5 minutes
pconn_timeout 60 seconds
request_timeout 30 seconds
#persistent_request_timeout 1 minute
client_lifetime 20 minutes
half_closed_clients off
quick_abort_min -1
#quick_abort_min 10 KB
#quick_abort_max 10 KB
#quick_abort_pct 95
cache_mgr typhoon_1983@163.com
cachemgr_passwd typhoon localhost
httpd_accel_host 192.168.1.250
httpd_accel_single_host off
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_with_proxy on
acl manager proto cache_object
acl conncount maxconn 30
acl permit method GET POST
acl acceleratedHost dstdomain .typhoon.com
acl acceleratedProtocol protocol HTTP
acl acceleratedPort port 80
acl all src 0.0.0.0/0.0.0.0
acl local src 127.0.0.1/32
httpd_accel_host virtual
http_access deny conncount
http_access allow manager local
http_access deny !permit
http_access allow acceleratedProtocol acceleratedPort acceleratedHost
http_access deny all
logfile_rotate 3
forwarded_for on
还有,想问一下,squid配好后,http://squid的ip,至少会出现错误界面?我的配置文件错在哪里?非常感谢!

论坛徽章:
0
2 [报告]
发表于 2005-11-08 15:24 |只看该作者

急 。。。。

这么久了都没人顶?

论坛徽章:
0
3 [报告]
发表于 2005-12-07 00:11 |只看该作者
acl 不对.吧.你说明你在哪个机子上用什么访问了什么.上面那个没看懂...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP