On 26/04/2010, at 23:22, Mayoo wrote: Alvaro Lopez Ortega <alvaro <at> octality.com> writes: >> On 26/04/2010, at 22:29, Mayoo wrote: >> >>> How to do that? >> >> If libgeoip is installed in your system, the configure script will enable >> the compilation and installation of the plug-in. > > The problem is i installed cherokee first, > then geoip.x86_64 0:1.4.6-1.el5.rf and > i didn't see geoip in the admin area.
No, it works the other way around. First, you install the geoip library, and then you compile Cherokee. >>> Is possible to use Geoip for HTTP reverse proxy ? >> >> Could you please rephrase that? I don't think I understood what you meant. > > i'm using a domain as a HTTP reverse proxy to > external IP (like 123.123.123.123:80). > What i need is before before the proxy reguest a page to external IP, > proxy will check visitor country first. > If country CN, then 403 page. Yeah, you can do that: You'd have to configure a rule to match CN, and then set a Custom error handler. A secondary 'default' rule would accept the rest of the traffic and use the reverse proxy. Cheers! -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
