Oneiroi/mod_geoip — Issue #2: Using mod_geoip Regions DB with private 10.x interface causes problems.
Author: darron
Created: 2012-01-24 21:50:10+00:00
State: open

I have installed the apache module from:

http://download.opensuse.org/repositories/Apache:/MirrorBrain/Ubuntu_10.04/

I am using the binary db located here:

http://www.maxmind.com/app/download_new?edition_id=115&date=20120124&suffix=tar.gz

My configuration file is here:

GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
GeoIPDBFile /usr/share/GeoIP/GeoIPRegion.dat

It's really odd - when I speak to Apache using the public routable IP
address - everything works great - I can view the Regions / everything
works great.

But when we use the Private non-routable IP address - it actually
causes Apache to NOT return the page - here are some logs from the
frontend caching server when that happens:

http://d.pr/XjLR

It causes Apache to NOT work at all on that interface - but the other
interface works just fine.

There's no crash logs at all - nothing to indicate a problem - it just
causes the page to fail.

The problem is that we use the Private non-routable IP address to
speak to our HTTP caching server - Varnish.

If I change the config to this:

GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

Then Apache doesn't fail to return the page - it doesn't cause the
whole system to fall down.

Is there any way I can disable the module for that interface? Or is
there a workaround?

Or do I have to just remove the module in this case?