poeml / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
75 stars 37 forks source link

IP detection problem #156

Closed poeml closed 9 years ago

poeml commented 9 years ago
                                                                               [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue156

Title    IP detection problem
 Priority   bug  Status   resolved
Superseder      Nosy List Kelson
Assigned To     Keywords
msg557 (view) Author: Kelson Date: 2015-01-20.22:19:37

I use Mirrorbrain behind a nginx reverse-proxy. I forward the IP in the HTTP headers an it looks good in apache logs. But Mirrorbrain still display this int he "mirrorlist" URL: List of best mirrors for IP address (null), located in an unknown country.

Like you can see, it looks like the IP is not detect correctly (null). Any idea?

msg558 (view) Author: Kelson Date: 2015-01-21.10:33:03

I have found the solution. The problem is that the geoip, per default, does not scan the correct HTTP headers. This is my fix:

GeoIPEnable On GeoIPEnableUTF8 On GeoIPScanProxyHeaders On
History
         Date          User  Action            Args
2015-01-21 10:33:03 Kelson set    status: unread -> resolved
                                    messages: + msg558
2015-01-20 22:19:37 Kelson create
(end of migrated issue)