Re: Different TTLs dependent upon req.http.host?

2009-05-04 Thread Poul-Henning Kamp
In message 49fe9576.7080...@d0pefish.de, Peter Hinse writes: No idea? User-defined variables do not work, is there any trick I can use to handle requests to xi.example.com differently? Which version are you running ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org

Re: Different TTLs dependent upon req.http.host?

2009-05-04 Thread Peter Hinse
Poul-Henning Kamp schrieb: In message 49fe9576.7080...@d0pefish.de, Peter Hinse writes: No idea? User-defined variables do not work, is there any trick I can use to handle requests to xi.example.com differently? Which version are you running ? Hi Poul-Henning, atm, I am running

Re: Different TTLs dependent upon req.http.host?

2009-05-04 Thread Peter Hinse
Peter Hinse schrieb: Hi all, I have a varnish config looking roughly like this: backend be1 { .host = 10.10.10.10; .port = 80; } sub vcl_recv { elseif (req.http.host ~ ^x.example.com) { set req.http.Host = host.example.com; set req.backend = be1; }