Docs ModGeoip » History » Revision 2
« Previous |
Revision 2/39
(diff)
| Next »
Anonymous, 2006-09-16 23:49
{{{
#!rst
========================
ip geographic lookups...
========================
-----------------
Module: mod_geoip
-----------------
.. contents:: Table of Contents
Requirements ============
:Packages: GeoIP C API & Library (http://www.maxmind.com/download/geoip/api/c/)
Overview ========
mod_geoip is a module for fast ip/location lookups. It uses MaxMind GeoIP / GeoCity databases.
If the ip was found in the database the module sets the appropriate environments variables to the request, thus making other modules/fcgi be informed.
.. note::
Currently only country/city databases are supported because they have a free version that i can test.
Installation ============
1) Download mod_geoip.c (http://link.com)
2) Copy mod_geoip.c into lighttpd src directory.
3) Edit your Makefile.am and add this after the last module:
::
lib_LTLIBRARIES += mod_geoip.la
mod_geoip_la_SOURCES = mod_geoip.c
mod_geoip_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
mod_geoip_la_LIBADD = $(common_libadd) -lGeoIP
4) Go back to lighttpd root directory and do: make clean; ./configure --enable-maintainer-mode ...; make; make install
Options / Configurations ========================
Environment ===========
Examples ========
Downloads
=========
}}}
Updated by Anonymous over 18 years ago · 39 revisions