免费注册 查看新帖 |

Chinaunix

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

[proxy] 关于squid管理的问题,盼复 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-10 12:07 |只看该作者 |倒序浏览
用Squid做反向加速,给WEB服务器做cache
Squid和后台的WEB服务器是独立的2台服务器
Squid版本是2.6stable6是安装环境是redhat 企业版5,双网卡。并且已经运行,并且能正常cache
Squid监听A网卡所在的网段192.168.1.1:80
Redhat上的apache监听B网卡所在的网段192.168.0.1:80
将cachemgr.cgi拷贝到apache所在的cgi-bin目录
配置cachemgr.conf 为192.168.1.1:80
配置squid.conf
acl managerip src 192.168.1.0/255.255.255.0 192.168.0.0/255.255.255.0
acl manager proto cache_object
cachemgr_passwd 123456 all
http_access allow manager managerip

通过浏览器访问http://192.168.0.1/cgi-bin/cachemgr.cgi出现登陆的页面
选择服务器,输入密码登陆成功,出现Cache Manager menu for 192.168.1.1:的界面
但点击任何一栏都出现类似
ERROR
Cache Manager Access Denied
--------------------------------------------------------------------------------
While trying to retrieve the URL: cache_object://192.168.1.1/ipcache
The following error was encountered:
Cache Manager Access Denied.
Sorry, you are not currently allowed to request:
    cache_object://192.168.1.1/ipcachefrom this cache manager until you have authenticated yourself.
You need to use Netscape version 2.0 or greater, or Microsoft Internet Explorer 3.0, or an HTTP/1.1 compliant browser for this to work. Please contact the cache administrator if you have difficulties authenticating yourself or, if you are the administrator, read Squid documentation on cache manager interface and check cache log for more detailed error messages.
检查日志,发现每当我点分栏的地址的时候,密码都没有继承过去,结果都由于缺乏了密码,导致访问被拒绝
在命令行用squidclient  -p 80 mgr:info直接访问提示不能连接loaclhost:80
            用squidclient -h 192.168.1.1 -p 80 mgr:info访问 同样出现Cache Manager Access Denied的信息
            用squidclient -h 192.168.1.1 -p 80 mgr:info@123456 则成功出现所需要的信息

请问是配置问题么?出在那里?怎么解决?盼复

论坛徽章:
0
2 [报告]
发表于 2007-10-10 12:13 |只看该作者

回复 #1 gzjor 的帖子


终于找问题所在了,原来是自己笨
在web登陆的时候随便加个用户名进去,就可以正常访问了

[ 本帖最后由 gzjor 于 2007-10-10 12:22 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2008-12-03 15:51 |只看该作者
受教了 最近正在搞这东东

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
4 [报告]
发表于 2008-12-03 16:13 |只看该作者
哈哈,,yuhuohu 也搞这个了,,SUN下不知道是什么效果!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP