caching behaviour for root domains (homepage)

Caunter, Stefan scaunter at
Wed Feb 16 16:49:33 CET 2011

You need in vcl_recv


if (req.url ~ "^/$"){

                set req.url = "default.aspx";



and then handle it the way you want.


Stefan Caunter 


Torstar Digital

m: (416) 561-4871



From: varnish-misc-bounces at
[mailto:varnish-misc-bounces at] On Behalf Of Xynidakis,
Tony A
Sent: February-15-11 4:58 PM
To: varnish-misc at
Subject: caching behaviour for root domains (homepage)


Hi all 

This is my first post and still learning Varnish

in the configs for varnish, we set up the caching rules not to cache
.aspx pages. 

our home page is the root domain

in the varnish trace the request is 'GET /' which makes sense but
without the .aspx extension it's doesn't get fall into the .aspx rule
that we have. 

is there additional rules that we need to add into the configs. 

Kind regards 



Tony Xynidakis
Content and Media - BigPond
Phone (: (03) 9632 8161
Fax 1: (03) 9600 1235
Mobile (: 0419 110 409
Email *: txynidakis at
<mailto:txynidakis at> 
Address : Level 32, 300 Latrobe St, Melbourne, Vic, 3000 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list