I have successfully (i guess) installed the modules in /usr/lib/varnish/vmods. Now I'm trying to display country code in headers. I import the mod with import geoip and use _set req.http.X-GeoIP = geoip.client_countrycode();
After that I restart varnish and receive no complaints. However my site no longer works. If I remove the client_coutry_code() line all is good.
Is there any way to debug the library?
I have successfully (i guess) installed the modules in /usr/lib/varnish/vmods. Now I'm trying to display country code in headers. I import the mod with import geoip and use _set req.http.X-GeoIP = geoip.client_countrycode();
After that I restart varnish and receive no complaints. However my site no longer works. If I remove the client_coutry_code() line all is good.
$ varnishd -V varnishd (varnish-3.0.5 revision 1a89b1f)