File mod-geoip.conf of Package GeoIPApache2
<IfModule mod_geoip.c>
GeoIPScanProxyHeaders On
GeoIPEnable On
GeoIPEnableUTF8 On
GeoIPOutput Env
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache
LogFormat "%v %h %{GEOIP_ADDR}e/%{GEOIP_COUNTRY_CODE}e/%{GEOIP_CITY}e %l %u %t \"%r\" %>s %b" vhost_common_GeoIP
<IfModule mod_deflate.c>
DeflateFilterNote deflate_geoip_ratio
LogFormat "%v %h %{GEOIP_ADDR}e/%{GEOIP_COUNTRY_CODE}e/%{GEOIP_CITY}e %l %u %t \"%r\" %>s %b %{deflate_geoip_ratio}n%% \"%{Referer}i\" \"%{User-agent}i\"" vhost_common_deflate_GeoIP
</IfModule>
</IfModule>