From a97132525d15deebbf35d54d12d9ad66bd21553a Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Wed, 23 Apr 2014 17:31:42 +0200 Subject: [PATCH 1/2] Do not enable GeoIP serverwide by default. This is not recommended by MaxMind and also not logical: a server may have many vhosts and only a small subset of hosts or paths may actually need the GeoIP information in the request. Therefore, it's much better to enable it selectively for those vhosts/locations/directories where it will actually be used. --- debian/geoip.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/geoip.conf b/debian/geoip.conf index 009615a..cc3201a 100644 --- a/debian/geoip.conf +++ b/debian/geoip.conf @@ -1,5 +1,8 @@ - GeoIPEnable On + # For performance reasons, it's not recommended to turn GeoIP on serverwide, + # but rather only in or blocks where it's actually + # needed. + GeoIPEnable Off #GeoIPDBFile /usr/share/GeoIP/GeoIP.dat From 6a54071704041194f5990e97207b118f48b207e7 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Wed, 23 Apr 2014 17:43:03 +0200 Subject: [PATCH 2/2] Recommend geoip-database. When you install mod-geoip, you likely also want a database. --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index d72c7b6..b9c1072 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,7 @@ Package: libapache2-mod-geoip Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: geoip-database Description: GeoIP support for apache2 This is an apache2 module for finding the country that a web request originated from. It uses the GeoIP library and database to perform