免费注册 查看新帖 |

Chinaunix

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

[proxy] squid日志问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-07 09:09 |只看该作者 |倒序浏览
启动了 FC自带的 squid代理正常 。但是发现 var/log/squid 下的日志文件 access.log是空的,没有任何内容。而cache.log和 store.log里的到是有内容,尤其是store.log文件大小增长的特别快。虽能帮忙解释一下为啥access.log里没有内容阿。
squdi.conf文件内容如下
http_port 150.250.0.2:2110
cache_dir null /tmp
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_user_host_header on
log_fqdn on
acl advance src 50.250.0.0/24
acl all src 0.0.0.0/0
acl file urlpath_regex -i \.mp3$ \.avi$ \.zip$ \.exe$ \.rar$ \.rm$ \.wam$ \.pdf$\.rmvb$
acl refused_sites url_regex sex
http_access allow advance
http_access deny file
http_access deny refused_sites
http_access deny all

论坛徽章:
0
2 [报告]
发表于 2008-03-13 23:02 |只看该作者
access_log是怎么配置的?
store.log没有多大意义,可以禁用,store_log none

论坛徽章:
0
3 [报告]
发表于 2008-03-14 08:55 |只看该作者
access_log 我都没配。该怎么配? 我看了squid.conf.default文件里的内容,可是看不懂,不知道该怎么配置。还望高人指点一下。谢谢!

论坛徽章:
0
4 [报告]
发表于 2008-03-14 13:39 |只看该作者
cat /etc/your.config.file |grep access_log

论坛徽章:
0
5 [报告]
发表于 2008-03-14 16:25 |只看该作者
呵呵,我没有在squid.conf里配置access_log,我配置的squid.conf文件见一楼。
现在我最纳闷的就是,为什么我的access.log里是空的?

论坛徽章:
0
6 [报告]
发表于 2008-03-15 02:52 |只看该作者
你要打开cache_access_log的选项才会记录访问日志;

论坛徽章:
0
7 [报告]
发表于 2008-03-17 15:51 |只看该作者
有 cache_access_log  这个选项?
那么语法是什么?
我在squid.conf.default里没有发现这个 选项阿
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP