首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

Nginx Awstats 中配备 Log 格式

2012-09-03 
Nginx Awstats中配置 Log 格式log_formatmain$remote_addr - [$time_local] $request $status $body_

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"

热点排行