server name in config?

Angelo Höngens a.hongens at netmatch.nl
Mon Apr 12 19:04:51 CEST 2010


On 12-4-2010 18:53, Richard Chiswell wrote:
> Try something like:
> sub vcl_deliver {
> if (obj.hits > 0) {
>             set resp.http.X-MH-Cache = "HIT " obj.hits " "*
> server.hostname* " " resp.http.Age;
>         } else {
>             set resp.http.X-MH-Cache = "MISS " *server.hostname* " "
> resp.http.Age;
>         }
> }
> 

Thanks, the server.hostname field works like a charm :)

-- 


With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

A.Hongens at netmatch.nl
www.netmatch.nl
------------------------------------------





More information about the varnish-misc mailing list