son30 发表于 2016-12-27 11:12:45

Nginx Awstats 中配置 Log 格式

log_formatmain          '$remote_addr - [$time_local] "$request" '   
                        '$status $body_bytes_sent "$http_referer" '【记住此处有个空格,在此被这个空格卡了1天】
                        '"$http_user_agent" $http_x_forwarded_for';
相对应的 Awstats 中 Log 格式为:
LogFormat = "%host - %time1 %methodurl %code %bytesd %refererquot %uaquot"
页: [1]
查看完整版本: Nginx Awstats 中配置 Log 格式