Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_geoip_module.xml @ 966:95c3c3bbf1ce
Text review.
author | Egor Nikitin <yegor.nikitin@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 12:03:41 +0400 |
parents | 9dab69f2b71d |
children | 07402a11fd8d |
comparison
equal
deleted
inserted
replaced
965:fadccc156188 | 966:95c3c3bbf1ce |
---|---|
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_geoip_module</literal> module (0.8.6+) creates variables | 18 The <literal>ngx_http_geoip_module</literal> module (0.8.6+) creates variables |
19 whose values depend on the client IP address, using the precompiled | 19 with values depending on the client IP address, using the precompiled |
20 <link url="http://www.maxmind.com">MaxMind</link> databases. | 20 <link url="http://www.maxmind.com">MaxMind</link> databases. |
21 </para> | 21 </para> |
22 | 22 |
23 <para> | 23 <para> |
24 When using IPv6 databases (1.3.12, 1.2.7), | 24 When using the databases with IPv6 support (1.3.12, 1.2.7), |
25 IPv4 addresses are looked up as IPv4-mapped IPv6 addresses. | 25 IPv4 addresses are looked up as IPv4-mapped IPv6 addresses. |
26 </para> | 26 </para> |
27 | 27 |
28 <para> | 28 <para> |
29 This module is not built by default, it should be enabled with the | 29 This module is not built by default, it should be enabled with the |
61 <syntax><value>file</value></syntax> | 61 <syntax><value>file</value></syntax> |
62 <default/> | 62 <default/> |
63 <context>http</context> | 63 <context>http</context> |
64 | 64 |
65 <para> | 65 <para> |
66 Specifies a database used to determine a country | 66 Specifies a database used to determine the country |
67 depending on the client IP address. | 67 depending on the client IP address. |
68 The following variables are available when using this database: | 68 The following variables are available when using this database: |
69 <list type="tag"> | 69 <list type="tag"> |
70 | 70 |
71 <tag-name><var>$geoip_country_code</var></tag-name> | 71 <tag-name><var>$geoip_country_code</var></tag-name> |
96 <syntax><value>file</value></syntax> | 96 <syntax><value>file</value></syntax> |
97 <default/> | 97 <default/> |
98 <context>http</context> | 98 <context>http</context> |
99 | 99 |
100 <para> | 100 <para> |
101 Specifies a database used to determine a country, region, and city | 101 Specifies a database used to determine the country, region, and city |
102 depending on the client IP address. | 102 depending on the client IP address. |
103 The following variables are available when using this database: | 103 The following variables are available when using this database: |
104 <list type="tag"> | 104 <list type="tag"> |
105 | 105 |
106 <tag-name><var>$geoip_area_code</var></tag-name> | 106 <tag-name><var>$geoip_area_code</var></tag-name> |
183 <default/> | 183 <default/> |
184 <context>http</context> | 184 <context>http</context> |
185 <appeared-in>1.0.3</appeared-in> | 185 <appeared-in>1.0.3</appeared-in> |
186 | 186 |
187 <para> | 187 <para> |
188 Specifies a database used to determine an organization | 188 Specifies a database used to determine the organization |
189 depending on the client IP address. | 189 depending on the client IP address. |
190 The following variable is available when using this database: | 190 The following variable is available when using this database: |
191 <list type="tag"> | 191 <list type="tag"> |
192 | 192 |
193 <tag-name><var>$geoip_org</var></tag-name> | 193 <tag-name><var>$geoip_org</var></tag-name> |
224 <context>http</context> | 224 <context>http</context> |
225 <appeared-in>1.3.0</appeared-in> | 225 <appeared-in>1.3.0</appeared-in> |
226 <appeared-in>1.2.1</appeared-in> | 226 <appeared-in>1.2.1</appeared-in> |
227 | 227 |
228 <para> | 228 <para> |
229 If recursive search is disabled then instead of an original client | 229 If recursive search is disabled then instead of the original client |
230 address that matches one of the trusted addresses, the last | 230 address that matches one of the trusted addresses, the last |
231 address sent in <header>X-Forwarded-For</header> will be used. | 231 address sent in <header>X-Forwarded-For</header> will be used. |
232 If recursive search is enabled then instead an original client | 232 If recursive search is enabled then instead of the original client |
233 address that matches one of the trusted addresses, the last | 233 address that matches one of the trusted addresses, the last |
234 non-trusted address sent in <header>X-Forwarded-For</header> will be used. | 234 non-trusted address sent in <header>X-Forwarded-For</header> will be used. |
235 </para> | 235 </para> |
236 | 236 |
237 </directive> | 237 </directive> |