[CDN 技术] squid的access_log记录访问url的参数中?没有的问题

Feb 26th, 2008

转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]

本文链接: http://www.php-oa.com/2008/02/26/squid-access.html

公司要在分析access_log日志,但怎么样也见不到?后面的url的内容 查了很多资料,最后发现.squid的access_log缺省是不记url里”?”后面的内容的 原来在squid.conf里有个叫”strip_query_terms“的参数,缺省是打开的(ON) 设成off即可 squid文档里是这么写的:

Tag Name strip_qury_terms
Usage strip_query_terms on|off

Description Squid by default does not log query parameters. These parameters are however forwarded to the server verbatim. If we want to enable logging of query parameters, the strip_query_terms directive can be used . By default, Squid strips query terms from requested URLs before logging. This protects your user’s privacy

Default strip_query_terms on
Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪 ViVi 365Key 网摘 天极网摘 和讯网摘 博拉网 POCO 网摘 饭否 QQ 书签 Digbuzz 我挖网 Mister Wong
  1. coolzsb
    Feb 27th, 2008 at 15:10
    Reply | Quote | #1

    赫赫,后悔当初没有仔细看squid的squid.conf.default了吧?

    签名

    仔细再翻一把,肯定还有意外的惊喜