Article

Use of the database in nginx

Configuration and use of the database (CIDR) are very practical and comfortable in nginx, so there is no problem to install it.

Nginx must be compiled with module ngx_http_geo_module (by default).
Paste in http
    geo  $geo {
            include  worldip.conf;
            default  XX;
    }
The variable $geo can also be used in log_format.
This variable gets passed through FastCGI to your backend:
fastcgi_param HTTP_GEO $geo;
or
fastcgi_param GEO $geo;
If nginx runs as a proxy (e.g. in conjunction with Apache), you need only add
proxy_set_header   HTTP_GEO             $geo;

Anonymous Russia08 Sep 2008 14:09#16Русский   
wipmania logo Alrond 09 Sep 2008 05:09#17Русский   
Anonymous Russia30 May 2009 13:05#1011Русский   
wipmania logo Alrond 30 May 2009 15:05#1012Русский   
kinder Russia31 May 2009 16:05#1019Русский   
wipmania logo Alrond 01 Jun 2009 15:06#1025Русский   
LnddMiles United States21 Jul 2009 14:07#1368English   
Great post! I’ll subscribe right now wth my feedreader software!

Anonymous/Name OpenID OpenID Yahoo! OpenID AOL WordPress LiveJournal TypePad Vox Myvidoop Orange Yandex YandexBlog Mixi Myspace Flickr Verisign MyOpenID ClaimID

All fields are not required

Leave blank for main post.
Comment - 5000 characters maximum. BBcode is allowed.

Subscribe to answers: to all comments:RSS comments (en)

Please have a look at our
Facebook Page and leave a comment

Creative Commons License
Creative Commons Attribution-Noncommercial 3.0 License