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

简介:
squid2.5stb10已大log定制補丁,速度很快,就是cachemgr.cgi 登陸後(選擇主機後,輸入密碼,空用戶名,用戶不知在哪裡設), 正常出現Cache Manager menu 管理菜單: 
Memory Utilization 
Callback Data Registry Contents 
Event Queue 
。。。。 

但點進上面的連接,卻執行錯誤: 


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有問題,請高手指點。。。 

附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 cache@www.com
# 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









本文转自 jxwpx 51CTO博客,原文链接:http://blog.51cto.com/jxwpx/216978,如需转载请自行联系原作者
目录
相关文章
|
25天前
|
运维 Linux Apache
LAMP架构调优(十)——Apache禁止指定目录PHP解析与错误页面优化
LAMP架构调优(十)——Apache禁止指定目录PHP解析与错误页面优化
197 2
|
9月前
|
缓存 负载均衡 算法
Nginx配置反向代理及基本参数解释说明
Nginx配置反向代理及基本参数解释说明
899 0
|
缓存 边缘计算 应用服务中间件
【缓存】squid基础解释、代理搭建
文章目录 前言 一、概念 1.1 原理/作用(传统代理)
276 0
|
存储 缓存 监控
RH358优化Web服务器流量--使用Varnish缓存静态网页
RH358优化Web服务器流量--使用Varnish缓存静态网页
291 0
RH358优化Web服务器流量--使用Varnish缓存静态网页
|
缓存 数据可视化 应用服务中间件
Squid、Varinsh和Nginx有什么区别,工作中你怎么选择?
Squid、Varinsh和Nginx有什么区别,工作中你怎么选择?
730 0
|
应用服务中间件 nginx
在nginx环境下同一个网站目录下放2个或者多个zblog程序nginx伪静态规则如何写
昨天升级完内核,主站主域名下还有2个zblog程序,升级完后忘记以前伪静态规则咋写了
|
缓存 应用服务中间件 nginx
Nginx之11吸星大法 - (页面缓存)
Nginx从入门到精通之页面缓存
1772 0
|
Web App开发 应用服务中间件 网络安全