2016-02-12 72 views
0

我有nginx代理服務器和應用程序在python上。當我從UC瀏覽器有要求我看到這個標頭如何在Nginx代理中檢測來自UCbrowser的真實IP?

HTTP_CLIENTIP': '223.176.141.141' 
'HTTP_X_REAL_IP': '168.235.197.149' 
'REMOTE_ADDR': '168.235.197.149' 
'HTTP_X_FORWARDED_FOR': '223.176.141.141, 168.235.197.149' 

客戶端IP是223.176.141.141但geoip的檢測錯誤counry與IP 168.235.197.149 ... 在配置我有這個選項

proxy_set_header X-Real-IP $remote_addr; 
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 

set_real_ip_from 192.168.1.0/24; 
    real_ip_header X-Forwarded-For; 

如何解決真正的ip檢測正常的問題?

回答

相關問題