Article

Use of the database in nginx

Configuration and use of the database 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 21:09#16Русский   
wipmania logo Alex 09 Sep 2008 12:09#17Русский   

Anonymous/Name OpenID OpenID Yahoo! OpenID AOL WordPress LiveJournal Technorati TypePad Vox Myvidoop Orange Yandex YandexBlog

All fields are not required

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

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

, , , , , , , , , , , , ,

RSS OpenBlog (en)

All topics: 27 (9 on english)

Alex (15)

Olga (6)

Andreas (6)

Forthcoming articles:

"The database of the hosting companies and data centers around the world, proxy-servers, search bots, as well as all satellite providers will be soon available!"

Creative Commons License
Creative Commons Attribution-Noncommercial 3.0 License