Using GeoIP With Nginx On Debian Squeeze/Ubuntu 11.04

Posted by falko on Oct 12, 2011 7:47 AM
By HowtoForge
Mail this story
Web version

This tutorial explains how to use the GeoIP module with nginx on Debian Squeeze/Ubuntu 11.04 to find out where your visitors come from. The GeoIP module sets multiple variables like $geoip_country_name, $geoip_country_code, $geoip_city, etc. that you can use in your PHP scripts or directly in your nginx configuration, for example to serve content in different languages based on the user's country.

This tutorial explains how to [url=http://www.howtoforge.com/using-geoip-with-nginx-on-debian-squeeze-ubuntu-11.04]use the GeoIP module with nginx on Debian Squeeze/Ubuntu 11.04[/url] to find out where your visitors come from. The GeoIP module sets multiple variables like $geoip_country_name, $geoip_country_code, $geoip_city, etc. that you can use in your PHP scripts or directly in your nginx configuration, for example to serve content in different languages based on the user's country. [url=http://www.howtoforge.com/using-geoip-with-nginx-on-debian-squeeze-ubuntu-11.04]http://www.howtoforge.com/using-geoip-with-nginx-on-debian-squeeze-ubuntu-11.04[/url]

Full Story

Printed at http://lxer.com/module/newswire/view/156824/index.html