Incorrect visitor's IP detection
-
Hi!
The plugin determines all the site visits as from one IP. I tried to check “Disable Proxy IP Detection” – no effect.I have pretty complicated configuration. My server has nginx and varnish. Moreover it gets visitors from the subdirectory of my other server (which is apache). So I have two servers – ApacheServer (apache with blog subdirectory configured as reverse proxy) and WordPressServer (nginx+varnish+wordpress). The complete scheme looks like this:
Visitor (73.1.106.131 for example) -> ApacheServer (proxy, 95.213.164.234) -> WordPressServer (Varnish -> Nginx -> WordPress)
The visitor’s IP is 73.1.106.131. The problem is the plugin records to the logs proxy’s IP 95.213.164.234, not the visitor’s.
Here is nginx log typical record:
95.213.164.234 – – [27/Mar/2015:19:42:21 +0300] “GET /blog/archive/2014-03-10/ HTTP/1.1” 200 16608 “https://infobusiness2.ru/blog/tag/12-luchshih-statei-2014-2015/” “Opera/9.80 (Windows NT 6.1; Win64; x64) Presto/2.12.388 Version/12.17” “73.1.106.131, 95.213.164.234”Here are the headers:
[HTTP_X_FORWARDED_HOST] => infobusiness2.ru
[HTTP_X_FORWARDED_SERVER] => infobusiness2.ru
[HTTP_X_FORWARDED_FOR] => 73.1.106.131, 95.213.164.234Could you please tell my how to solve this issue?
- The topic ‘Incorrect visitor's IP detection’ is closed to new replies.