Using GeoIP Functionality in Varnish

Sebastian Cabrera scabrera-varnish at
Tue Mar 16 21:07:44 CET 2010

Hi everybody,

i just replied to my own request, because i could not make a decision
whom to write back :)

You all gave me some very good ideas, i have to discuss them with my
collegues. I also had a look at,
but also read something about the need to have the "city edition of
GeoIP" and was not sure what this could mean.

thank you very much,


On 03/16/2010 05:22 PM, Sebastian Cabrera wrote:
> Hi everybody,
> On a Website i want to have the posibility to do some rewriting due to
> the Country he's comming from. So if someone visits the Mainpage
> ( from US i want to have him visiting
> Does anyone have any experiences with that? How can i do this?
> I just downloaded and installed the GeoIP Plugin from the varnish wiki
> (, but how can i use it?
> Is there any possibility to do something like
> if (get_country_code(client.ip) == "US") {
>     set req.url = "/us/"
> }
> ?
> thanks for your help,
> regards,
> Sebastian
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?

More information about the varnish-misc mailing list