Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
apache2:geoip [2016/05/09 08:20]
wadmin
apache2:geoip [2016/05/09 09:13] (current)
wadmin
Line 7: Line 7:
 nano /​etc/​apache2/​mods-available/​geoip.conf nano /​etc/​apache2/​mods-available/​geoip.conf
 a2enmod geoip a2enmod geoip
 +mkdir /opt/GeoIP
 +cd /opt/GeoIP
 +wget http://​geolite.maxmind.com/​download/​geoip/​database/​GeoLiteCountry/​GeoIP.dat.gz
 +wget http://​geolite.maxmind.com/​download/​geoip/​database/​GeoLiteCountry/​GeoIPv6.dat.gz
 +gunzip *.gz
 +service apache2 restart
 </​file>​ </​file>​
  
Line 14: Line 20:
 <​IfModule mod_geoip.c>​ <​IfModule mod_geoip.c>​
   GeoIPEnable On   GeoIPEnable On
-  GeoIPDBFile /usr/share/​GeoIP/​GeoIP.dat +  GeoIPDBFile /opt/​GeoIP/​GeoIP.dat 
-  GeoIPDBFile /usr/share/​GeoIP/​GeoIP.dat MemoryCache +  GeoIPDBFile /opt/​GeoIP/​GeoIP.dat MemoryCache 
-  GeoIPDBFile /usr/share/​GeoIP/​GeoIP.dat CheckCache+  GeoIPDBFile /opt/GeoIP/GeoIP.dat CheckCache 
 +  GeoIPDBFile /opt/GeoIP/​GeoIPv6.dat 
 +  GeoIPDBFile /​opt/​GeoIP/​GeoIPv6.dat MemoryCache 
 +  GeoIPDBFile /​opt/​GeoIP/​GeoIPv6.dat CheckCache
   GeoIPScanProxyHeaders On   GeoIPScanProxyHeaders On
  
/var/customers/webs/cw01/wiki/data/pages/apache2/geoip.txt · Last modified: 2016/05/09 09:13 by wadmin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki