apache 日志显示来源,浏览器信息
作者: 唐布拉草原 日期: 2007-12-09 17:38
可以使用如下的格式
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog logs/access.log combined
显示的日志格式为
202.160.179.63 - - [09/Dec/2007:02:22:21 +0800] "GET /health/jibing/x/wangxiangzheng/2549.html HTTP/1.0" 200 8624 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp China; http://misc.yahoo.com.cn/help.html)"
202.160.178.244 - - [09/Dec/2007:02:30:46 +0800] "GET /health/jibing/x/yiyuzheng/2245_2.html HTTP/1.0" 200 10944 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp China; http://misc.yahoo.com.cn/help.html)"
61.135.166.230 - - [09/Dec/2007:02:32:28 +0800] "HEAD /health/lady/huli/781.html HTTP/1.1" 200 - "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
61.135.166.230 - - [09/Dec/2007:02:32:32 +0800] "HEAD /health/lady/huli/797.html HTTP/1.1" 200 - "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
61.135.166.230 - - [09/Dec/2007:02:32:32 +0800] "HEAD /health/xinli/xinlichangshi/1103.html HTTP/1.1" 200 - "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
评论: 0 |
引用: 0 |
阅读: 345
发表评论
订阅
上一篇
返回
下一篇
标签:


Apache 2.2.4 + PHP 5.2.0 + MySQL 5.0.27 + Zend Optimizer 3.2.0环境详细配置说明 (2008-03-06 10:59)
Apache日志配置 (2007-12-08 21:38)
Apache服务器配置技巧 (2007-12-02 12:03)
apache与IIS组合 (2007-11-11 20:48)
让Apache支持ASP.NET (2007-08-28 09:28)