码迷,mamicode.com
首页 > 其他好文 > 详细

Nginx阿里云客户端IP日志记录

时间:2015-02-12 18:03:08      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:

log_format  main  ‘realip:$http_x_forwarded_for slbip:$remote_addr-$remote_user [$time_local] "$request" ‘
                      ‘$status $body_bytes_sent "$http_referer" ‘
                      ‘"$http_user_agent" "$http_x_forwarded_for"‘;
log_format  man  ‘realip:$remote_addr - $remote_user [$time_local] "$request" ‘
                      ‘$status $body_bytes_sent "$http_referer" ‘
                      ‘"$http_user_agent" "$http_x_forwarded_for"‘;

  

Nginx阿里云客户端IP日志记录

标签:

原文地址:http://www.cnblogs.com/jimingsong/p/4288531.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!