+ -
当前位置:首页 → 问答吧 → Nginx 比记录真实用户IP问题

Nginx 比记录真实用户IP问题

时间:2010-10-14

来源:互联网

Hi

    我的情况是这样的.   

   F5------Ningx        Nginx 在F5 的后端.  F5 的内部IP:  10.10.10.10   

现在在nginx的access.log 里全市F5的IP,并没有转换成用户的真实IP.

Nginx 版本 0.8.46  编译的时候加了--with-http_realip_module


conf:

  log_format main '$http_x_forwarded_for - $remote_user [$time_local] '
                      '"$request" $status $body_bytes_sent '
                      '"$http_referer" "$http_user_agent"';

请问是什么问题呢?

PS: 也写了   set_real_ip_from 10.10.10.10;
                    real_ip_header X-Forwarded_For;
但是没用....

作者: zhangheng520   发布时间: 2010-10-14

自己顶下, 麻烦大家帮忙给看看了.....谢谢

作者: zhangheng520   发布时间: 2010-10-14