Created
February 14, 2014 19:45
-
-
Save plasticbrain/9007765 to your computer and use it in GitHub Desktop.
Install Apache GeoIP module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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