You need in vcl_recv

 

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

                set req.url = "default.aspx";

}

 

and then handle it the way you want.

 

Stefan Caunter 

Operations

Torstar Digital

m: (416) 561-4871

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Xynidakis,
Tony A
Sent: February-15-11 4:58 PM
To: [email protected]
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  http://v8supercars.com.au
<http://v8supercars.com.au>  

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 

 

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

 

_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to