2015年6月11日

讓 awstats 分析 nginx log 檔

nginx.conf 設定
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
                '$status $body_bytes_sent "$http_referer" '
                '"$http_user_agent" "$http_x_forwarded_for"';).


awstats.conf.local 設定
LogFormat = "%host - %host_r %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot"

0 意見:

張貼留言