This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
geo_ip [2009/04/04 07:57] k2patel created |
geo_ip [2009/04/04 07:58] k2patel |
||
---|---|---|---|
Line 9: | Line 9: | ||
[[http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz | download geoip database]] | [[http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz | download geoip database]] | ||
+ | |||
+ | save geoip database at - /srv/www/htdocs/.geoip/GeoIP.dat | ||
Get mod_GeoIP from maxmid.com | Get mod_GeoIP from maxmid.com | ||
Line 15: | Line 17: | ||
<code bash> | <code bash> | ||
- | /www/apache/bin/apxs -i -a -L /usr/local/lib -I /usr/local/include -lGeoIP -c mod_geoip.c | + | /srv/www/bin/apxs -i -a -L /usr/local/lib -I /usr/local/include -lGeoIP -c mod_geoip.c |
</code> | </code> | ||
Line 22: | Line 24: | ||
<IfModule mod_geoip.c> | <IfModule mod_geoip.c> | ||
GeoIPEnable On | GeoIPEnable On | ||
- | GeoIPDBFile /www/virtual/andrewt/.geoip/GeoIP.dat | + | GeoIPDBFile /srv/www/htdocs/.geoip/GeoIP.dat |
</IfModule> | </IfModule> | ||
</code> | </code> | ||
restart apache. | restart apache. |