读书人

Nginx Awstats 中配备 Log 格式

发布时间: 2012-09-03 09:48:39 作者: rapoo

Nginx Awstats 中配置 Log 格式
log_format main '$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"

读书人网 >操作系统

热点推荐