Apache 日志没有客户端的浏览器、系统等信息

Apache 日志没有客户端的浏览器、系统等信息

版本是 2.2 For Windows

[Copy to clipboard] [ - ]
CODE:
116.25.186.64 - - [29/Sep/2008:15:11:18 +0800] "GET /login.php HTTP/1.1" 302 26
116.25.186.64 - - [29/Sep/2008:15:11:19 +0800] "GET /imp/login.php HTTP/1.1" 200 3578

以上是不完整的日记信息,整个日记文件都是这样.

httpd.conf 的相关设置如下

[Copy to clipboard] [ - ]
CODE:
<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

而正常的日记应该是

192.168.0.135 - - [12/Jan/2007:09:10:05 +0800] "GET /abc/abc.php?type=noerror HTTP/1.1" 200 280 "http://192.168.0.21/view/main.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
192.168.0.135 - - [12/Jan/2007:09:10:05 +0800] "GET /abc/index.php HTTP/1.1" 200 643 "http://192.168.0.21/view/main.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
感觉CCTV,MTV我的问题解决了


CustomLog "logs/access.log" combined
呵呵,恭喜下~~