Module ngx_http_geoip_module | ![]() english עברית 日本語 русский türkçe news about download security advisories documentation introduction pgp keys howto faq trac wiki links books support donation nginx.com @nginxorg | ||||||||||||||||||||||||
The
This module is not built by default, it should be enabled with the
This module requires the MaxMind GeoIP library.
Example Configuration
Directives
Specifies a database used to determine a country depending on the client IP address. The following variables are available when using this database:
Specifies a database used to determine a country, region, and city depending on the client IP address. The following variables are available when using this database:
This directive appeared in version 1.3.0. Defines trusted addresses. When a request comes from a trusted address, an address from the “X-Forwarded-For” request header field will be used instead.
This directive appeared in version 1.3.0. If recursive search is disabled then instead of an original client address that matches one of the trusted addresses, the last address sent in “X-Forwarded-For” will be used. If recursive search is enabled then instead an original client address that matches one of the trusted addresses, the last non-trusted address sent in “X-Forwarded-For” will be used. |