nginx $remote_addr $http_x_forwarded_for $remote_user 无值

wanghuoling550 2015-08-12 06:16:14
如题所示,nginx的日志记录格式如下:
log_format access '$remote_addr - $http_x_forwarded_for - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$host" "$remote_port" '


这段时间,网站总受DDOS攻击,排查日志文件。看IP前10,如下图所示:


再随机抽了几条日志详情查看,发现如题所示的三个变量值,均为空,随机日志如下所示:
...全文
408 回复 打赏 收藏 转发到动态 举报
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复
相关推荐

25,989

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告