Apache日志格式及获取客户端IP

LogLevel warn
LogFormat "%{clientip}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog "|/usr/sbin/rotatelogs /var/log/httpd/access_log-%Y-%m-%d-%H 7200 480" combined

你可能感兴趣的:(Apache日志格式及获取客户端IP)