<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=Http3rdPartyGeoIPModule&amp;feed=atom&amp;action=history</id>
		<title>Http3rdPartyGeoIPModule - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=Http3rdPartyGeoIPModule&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Http3rdPartyGeoIPModule&amp;action=history"/>
		<updated>2013-05-24T08:22:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=Http3rdPartyGeoIPModule&amp;diff=424&amp;oldid=prev</id>
		<title>Kolbyjack: moved NginxHttp3rdPartyGeoIPModule to Http3rdPartyGeoIPModule:&amp;#32;Removing Nginx prefix from page titles</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Http3rdPartyGeoIPModule&amp;diff=424&amp;oldid=prev"/>
				<updated>2010-09-22T17:54:24Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/NginxHttp3rdPartyGeoIPModule&quot; class=&quot;mw-redirect&quot; title=&quot;NginxHttp3rdPartyGeoIPModule&quot;&gt;NginxHttp3rdPartyGeoIPModule&lt;/a&gt; to &lt;a href=&quot;/Http3rdPartyGeoIPModule&quot; title=&quot;Http3rdPartyGeoIPModule&quot;&gt;Http3rdPartyGeoIPModule&lt;/a&gt;: Removing Nginx prefix from page titles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Synopsis =&lt;br /&gt;
&lt;br /&gt;
'''This module has been replaced by the official [[NginxHttpGeoIPModule]] since Nginx 0.7.63/0.8.6.'''&lt;br /&gt;
&lt;br /&gt;
'''Please use this module only for Nginx 0.7.62 or earlier.'''&lt;br /&gt;
&lt;br /&gt;
The Nginx GeoIP module is based on the original [[NginxHttpGeoModule|Geo]]  module, the difference being that it is not being controlled by a piece of config, but makes use of the [http://www.maxmind.com/ MaxMind]  GeoIP binary API natively. It provides for fast lookups from both the binary [http://www.maxmind.com/app/geolitecountry GeoLite Country]  and [http://www.maxmind.com/app/country GeoIP Country]  databases.&lt;br /&gt;
&lt;br /&gt;
One of the advantages to use the binary databases and API is getting automated updates from MaxMind through the geoipupdate utility. This is also the reason why [http://www.spilgames.com/ SPIL GAMES]  wrote this module.&lt;br /&gt;
&lt;br /&gt;
Example usage:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
geoip_country_file /absolute/path/to/GeoIP.dat;&lt;br /&gt;
location /geoip/ {&lt;br /&gt;
  rewrite .* /?country=$geoip_country_code;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Directives =&lt;br /&gt;
== geoip_country_file ==&lt;br /&gt;
&lt;br /&gt;
'''syntax:''' ''geoip_country_file path''&lt;br /&gt;
&lt;br /&gt;
'''default:''' ''n/a''&lt;br /&gt;
&lt;br /&gt;
'''context:''' ''http''&lt;br /&gt;
&lt;br /&gt;
Enables resolving of  $geoip_country_* variables documented below.&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
For now the following variables are supported:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$geoip_country_code&amp;lt;/code&amp;gt;, this variable contains the alpha-2 country code as resolved by the GeoIP country API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$geoip_country_code3&amp;lt;/code&amp;gt;, this variable contains the alpha-3 country code as resolved by the GeoIP country API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$geoip_country_name&amp;lt;/code&amp;gt;, this variable contains the country name as resolved by the GeoIP country API.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
To install, download the source tarball ( [[File:Nginx-geoip-0.2.tar.gz]] ), expand it, and then compile nginx with the following option:&lt;br /&gt;
&lt;br /&gt;
: . --add-module=/path/to/nginx-geoip-0.2&lt;br /&gt;
&lt;br /&gt;
Please make sure to have the [http://www.maxmind.com/app/c GeoIP C API]  installed and in your system library paths.&lt;br /&gt;
&lt;br /&gt;
= TODO =&lt;br /&gt;
&lt;br /&gt;
* Allow control of memory caching options (fixed to GEOIP_MEMORY_CACHE | GEOIP_CHECK_CACHE for now)&lt;br /&gt;
* Add support for [http://www.maxmind.com/app/city GeoIP City]  databases?&lt;br /&gt;
&lt;br /&gt;
= Bugs =&lt;br /&gt;
&lt;br /&gt;
Please report bugs to matthijs AT SPAMFREE spilgames DOT com.&lt;/div&gt;</summary>
		<author><name>Kolbyjack</name></author>	</entry>

	</feed>