别人SQUID下CACHEMGR遇到的问题,可以参考我的SQUID的做法解决

squid2.5stb10已大log定制�a丁,速度很快,就是cachemgr.cgi 登�後(�x�裰�C後,�入密�a,空用�裘�,用�舨恢�在哪�e�O), 正常出�FCache Manager menu 管理菜�危�
Memory Utilization
Callback Data Registry Contents
Event Queue
。。。。

但�c�M上面的�B接,�s�绦绣e�`:


ERROR
Cache Manager Access Denied

--------------------------------------------------------------------------------

While trying to retrieve the URL: cache_object://61.168.0.11/mem

The following error was encountered:

Cache Manager Access Denied.

Sorry, you are not currently allowed to request:

cache_object://61.168.0.11/memfrom this cache manager until you have authenticated yourself.


------------------------------------------------------------------------------
是否acl有���},�高手指�c。。。

附squid.conf,和cachemgr.conf


###
icp_port 0

###
strip_query_terms off
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h"
access_log /var/log/squid/access.log combined
cache_log /var/log/squid/cache.log

pid_filename /var/run/squid.pid


# visible name
visible_hostname cache.www.com
cache_mgr [email protected]
# cache config: space use 1G and memory use 256M
cache_dir ufs /data/scsi/cache/squid1 4096 16 256
cache_dir ufs /data/sata/cache/squid1 4096 16 256
cache_dir ufs /data/sata/cache/squid2 4096 16 256
cache_swap_high 90%
cache_swap_low 80%
maximum_object_size 1024 KB


cache_mem 384 MB
cache_effective_user nobody
cache_effective_group nobody

http_port 61.168.0.11:80
httpd_accel_host 127.0.0.1
httpd_accel_single_host on
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_with_proxy on

# accelerater my domain only
acl acceleratedHostA dstdomain .xxx.com


# accelerater http protocol on port 80
acl acceleratedProtocol protocol HTTP
acl acceleratedPort port 80

# access arc
acl all src 0.0.0.0/0.0.0.0

# Allow requests when they are to the accelerated machine AND to the
# right port with right protocol
http_access allow acceleratedProtocol acceleratedPort acceleratedHostA


# logging
emulate_httpd_log on
cache_store_log none

# manager
acl manager proto cache_object
http_access allow manager all
cachemgr_passwd 123456 all

dns_children 20
redirect_children 20

#
#refresh_pattern -i . 60 90% 129600 reload-into-ims
#refresh_pattern -i .html 60 90% 129600 reload-into-ims
#refresh_pattern -i .shtml 60 90% 129600 reload-into-ims
refresh_pattern -i .swf 1440 90% 129600 reload-into-ims




cachemgr.conf文件�热�


61.168.0.11:80
分享至
一键收藏,随时查看,分享好友!
0人
了这篇文章
类别: Linux┆阅读( 0)┆评论( 0) ┆ 返回博主首页┆ 返回博客首页
上一篇 我的SQUID下GRAPH分析界面 下一篇 vmstat 全面的性能分析工具

你可能感兴趣的:(职场,squid,休闲,CACHEMGR)