Skip to content

Instantly share code, notes, and snippets.

@plasticbrain
Created February 14, 2014 19:45
Show Gist options
  • Select an option

  • Save plasticbrain/9007765 to your computer and use it in GitHub Desktop.

Select an option

Save plasticbrain/9007765 to your computer and use it in GitHub Desktop.
Install Apache GeoIP module
$ sudo apt-get install libapache2-mod-geoip
$nano /etc/apache2/mods-available/geoip.conf
Uncomment "GeoIPDBFile" line
For WorldTrack, the file location is: /var/www/geoip.dat
You should store your .dat file OUTSIDE of your publicly accessible www dir
OR, use .htaccess to deny access to it:
<FilesMatch "\.(htaccess|htpasswd|dat)$">
order allow,deny
deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment