Skip to content

Instantly share code, notes, and snippets.

@plasticbrain
Created February 14, 2014 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plasticbrain/9007765 to your computer and use it in GitHub Desktop.
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