2 messages in ru.sysoev.nginxRe: how to use the ngx_http_geo_module
FromSent OnAttachments
焦胜强Jun 15, 2007 9:37 am 
Igor SysoevJun 15, 2007 10:11 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: how to use the ngx_http_geo_moduleActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Jun 15, 2007 10:11:52 am
List:ru.sysoev.nginx

On Sat, Jun 16, 2007 at 12:37:58AM +0800, ?????? wrote:

how to use the ngx_http_geo_module,can somebody give me a usage example?

The module allows to set variables depending client address: http://wiki.codemongers.com/NginxHttpGeoModule

Then you can use the variables, for example:

if ($slow) { set $limit_rate 1k; }

if ($forbidden) { return 403; }